Diff

util/error.lua @ 11098:5b778ec095f0

util.error: Expose source and registry as fields on the registry object For access, e.g. to identify and compare errors later
author Kim Alvefur <zash@zash.se>
date Mon, 28 Sep 2020 19:26:48 +0200
parent 11095:1ea3574b19c8
child 11100:3aa06cdd2dc8
line wrap: on
line diff
--- a/util/error.lua	Mon Sep 28 18:36:00 2020 +0200
+++ b/util/error.lua	Mon Sep 28 19:26:48 2020 +0200
@@ -73,6 +73,8 @@
 
 local function init(source, registry)
 	return {
+		source = source;
+		registry = registry;
 		new = function (e, context)
 			return new(e, context, registry, source);
 		end;