# HG changeset patch # User Matthew Wild # Date 1601032770 -3600 # Node ID 505c3e5907a581de1f88792c887282f376abb205 # Parent d8fad2b48b05024ceeb0cd7725a1a8a9b0a0c46d util.error: Simplify error creation - remove ability to set context from templates, and remove default context diff -r d8fad2b48b05 -r 505c3e5907a5 util/error.lua --- 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);