aboutsummaryrefslogtreecommitdiffstats
path: root/util/error.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/error.lua')
-rw-r--r--util/error.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/error.lua b/util/error.lua
index 461bf385..ca960dd9 100644
--- a/util/error.lua
+++ b/util/error.lua
@@ -21,7 +21,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;
+ code = template.code;
context = context or template.context or { _error_id = e };
}, error_mt);