aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-09-25 12:19:30 +0100
committerMatthew Wild <mwild1@gmail.com>2020-09-25 12:19:30 +0100
commit73e87f3901e29b91662717b6cddb49b6f5d27858 (patch)
treebd2b2170457418a1356650d504de778fd1c9a110
parent646bd1da3df6ca12ea02e036ed2af9b8e9eb173d (diff)
downloadprosody-73e87f3901e29b91662717b6cddb49b6f5d27858.tar.gz
prosody-73e87f3901e29b91662717b6cddb49b6f5d27858.zip
util.error: Simplify error creation - remove ability to set context from templates, and remove default context
-rw-r--r--util/error.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/error.lua b/util/error.lua
index 2c96bc03..ade1bb3b 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -36,7 +36,7 @@ end
local function new(e, context, registry, source)
local template = (registry and registry[e]) or e or {};
- context = context or template.context or { _error_id = e };
+ context = context or {};
if auto_inject_traceback then
context.traceback = debug.traceback("error stack", 2);