aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/error.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/error.lua b/util/error.lua
index 23551fe2..9ebfa6ab 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -14,6 +14,7 @@ local function new(e, context, registry)
type = template.type or "cancel";
condition = template.condition or "undefined-condition";
text = template.text;
+ code = template.code or 500;
context = context or template.context or { _error_id = e };
}, error_mt);