diff options
author | Kim Alvefur <zash@zash.se> | 2020-09-28 19:26:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-09-28 19:26:48 +0200 |
commit | d101532cfcafd983a09ba5bbc990b5fe26c75d83 (patch) | |
tree | 8c4e5b0e81588b56da75785615f02b62958c01fe | |
parent | dc446463ab10d466f5c67cab4530156a85d4dd9f (diff) | |
download | prosody-d101532cfcafd983a09ba5bbc990b5fe26c75d83.tar.gz prosody-d101532cfcafd983a09ba5bbc990b5fe26c75d83.zip |
util.error: Expose source and registry as fields on the registry object
For access, e.g. to identify and compare errors later
-rw-r--r-- | util/error.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/error.lua b/util/error.lua index 44eb59a2..47d4e7b6 100644 --- a/util/error.lua +++ b/util/error.lua @@ -73,6 +73,8 @@ end local function init(source, registry) return { + source = source; + registry = registry; new = function (e, context) return new(e, context, registry, source); end; |