util.error: Simplify error creation - remove ability to set context from templates, and remove default context
--- a/util/error.lua Fri Sep 25 12:18:18 2020 +0100
+++ b/util/error.lua Fri Sep 25 12:19:30 2020 +0100
@@ -36,7 +36,7 @@
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);