aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/error.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/error.lua b/util/error.lua
index c46f8790..2c96bc03 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -1,3 +1,4 @@
+local id = require "util.id";
-- Library configuration (see configure())
local auto_inject_traceback = false;
@@ -42,6 +43,7 @@ local function new(e, context, registry, source)
end
return setmetatable({
+ instance_id = id.short();
type = template.type or "cancel";
condition = template.condition or "undefined-condition";
text = template.text;