# HG changeset patch # User Kim Alvefur # Date 1601314008 -7200 # Node ID 5b778ec095f015e119dec9ae2f81153019a9e582 # Parent f23cf8e2e2ff9090b62014c84e5c24e97b76b3e7 util.error: Expose source and registry as fields on the registry object For access, e.g. to identify and compare errors later diff -r f23cf8e2e2ff -r 5b778ec095f0 util/error.lua --- 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;