# HG changeset patch # User Matthew Wild # Date 1241543233 -3600 # Node ID b2e548344d61ebbfd1474baedc5aa187f874948a # Parent 3911e81aff1996dd50f7de491ead9209657dcb74 util.serialization: Write nil for non-serializable data types, and bump the log level to 'error' diff -r 3911e81aff19 -r b2e548344d61 util/serialization.lua --- a/util/serialization.lua Tue May 05 21:13:09 2009 +0500 +++ b/util/serialization.lua Tue May 05 18:07:13 2009 +0100 @@ -52,7 +52,8 @@ elseif type(o) == "boolean" then func(t, (o and "true" or "false")); else - log("warn", "cannot serialize a %s: %s", type(o), debug_traceback()) + log("error", "cannot serialize a %s: %s", type(o), debug_traceback()) + func(t, "nil,\n"); end end