diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-09-25 12:19:30 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-09-25 12:19:30 +0100 |
commit | 93500d02d77f1541cbe952bf3b89f2e73f2ad031 (patch) | |
tree | bd2b2170457418a1356650d504de778fd1c9a110 /util/error.lua | |
parent | b55922a55a4d53d1106c6c2d2da6705a23abe63a (diff) | |
download | prosody-93500d02d77f1541cbe952bf3b89f2e73f2ad031.tar.gz prosody-93500d02d77f1541cbe952bf3b89f2e73f2ad031.zip |
util.error: Simplify error creation - remove ability to set context from templates, and remove default context
Diffstat (limited to 'util/error.lua')
-rw-r--r-- | util/error.lua | 2 |
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); |