aboutsummaryrefslogtreecommitdiffstats
path: root/util/error.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/error.lua')
-rw-r--r--util/error.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/util/error.lua b/util/error.lua
index 4079a876..00192273 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -58,9 +58,11 @@ local function new(e, context, registry, source)
end
local function init(source, registry)
- return function (e, context)
- return new(e, context, registry, source);
- end
+ return {
+ new = function (e, context)
+ return new(e, context, registry, source);
+ end;
+ };
end
local function coerce(ok, err, ...)