Comparison

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
comparison
equal deleted inserted replaced
11097:f23cf8e2e2ff 11098:5b778ec095f0
71 return error_instance; 71 return error_instance;
72 end 72 end
73 73
74 local function init(source, registry) 74 local function init(source, registry)
75 return { 75 return {
76 source = source;
77 registry = registry;
76 new = function (e, context) 78 new = function (e, context)
77 return new(e, context, registry, source); 79 return new(e, context, registry, source);
78 end; 80 end;
79 }; 81 };
80 end 82 end