changeset 11082 | fb3aec3dbe21 |
parent 11081 | 8ea430de5fd3 |
child 11083 | 1e5a0e0469de |
--- a/util/error.lua Fri Sep 25 12:27:45 2020 +0100 +++ b/util/error.lua Fri Sep 25 12:32:43 2020 +0100 @@ -58,9 +58,11 @@ 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, ...)