util/serialization.lua
changeset 9573 ce403b6470f8
parent 9572 0bc399953c27
child 9696 affcbccc1dff
child 10064 7a36b7ac309b
--- a/util/serialization.lua	Sat Oct 27 12:54:57 2018 +0200
+++ b/util/serialization.lua	Sat Oct 27 12:56:01 2018 +0200
@@ -39,7 +39,7 @@
 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 = {