aboutsummaryrefslogtreecommitdiffstats
path: root/util/error.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-09-28 19:26:48 +0200
committerKim Alvefur <zash@zash.se>2020-09-28 19:26:48 +0200
commit8d1e8e9ad951787a257ef93dce4a02799280f62a (patch)
tree8c4e5b0e81588b56da75785615f02b62958c01fe /util/error.lua
parent6ff7dfc843b14e3850c8390eaaf0a0eb5ba24d5d (diff)
downloadprosody-8d1e8e9ad951787a257ef93dce4a02799280f62a.tar.gz
prosody-8d1e8e9ad951787a257ef93dce4a02799280f62a.zip
util.error: Expose source and registry as fields on the registry object
For access, e.g. to identify and compare errors later
Diffstat (limited to 'util/error.lua')
-rw-r--r--util/error.lua2
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;