aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/serialization.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/serialization.lua b/util/serialization.lua
index 8ef8048d..dd6a2a2b 100644
--- a/util/serialization.lua
+++ b/util/serialization.lua
@@ -39,7 +39,7 @@ local function fatal_error(obj, why)
end
local function nonfatal_fallback(x, why)
- return s_format("nil --[[%s: %s]]", type(x), why or "fail");
+ return s_format("{__type=%q,__error=%q}", type(x), why or "fail");
end
local string_escapes = {