Changeset

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
parents 11097:f23cf8e2e2ff
children 11099:6fbfe2af4b4f
files util/error.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;