Changeset

11076:505c3e5907a5

util.error: Simplify error creation - remove ability to set context from templates, and remove default context
author Matthew Wild <mwild1@gmail.com>
date Fri, 25 Sep 2020 12:19:30 +0100
parents 11075:d8fad2b48b05
children 11077:8ea430de5fd3
files util/error.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);