util.pluginloader: Remove unnecessary return value suppressing the real load error
[prosody.git] / util / serialization.lua
index 41d963e905d47a956c70d5f3ed9ee164edcba692..1ffd3e16497be7e845e8d89a072a65852b962749 100644 (file)
@@ -52,7 +52,8 @@ local function _simplesave(o, ind, t, func)
        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");
        end
 end