aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua3
-rw-r--r--util/serialization.lua3
2 files changed, 5 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 3b523a78..ce223459 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -9,6 +9,9 @@ local nodeprep, nameprep = stringprep.nodeprep, stringprep.nameprep;
local io, os = io, os;
local tostring, tonumber = tostring, tonumber;
+
+local CFG_SOURCEDIR = _G.CFG_SOURCEDIR;
+
module "prosodyctl"
function adduser(params)
diff --git a/util/serialization.lua b/util/serialization.lua
index 41d963e9..4da811ae 100644
--- a/util/serialization.lua
+++ b/util/serialization.lua
@@ -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,\n");
end
end