aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2010-12-18 21:04:45 +0100
committerFlorian Zeitz <florob@babelmonkeys.de>2010-12-18 21:04:45 +0100
commit103b279022a8476465aca894a47ef2f4a955c120 (patch)
tree660f0a447a13e3ae41e63d2b6d47320ba1cd9006 /util/prosodyctl.lua
parent22a83d733c206006fbcf24baaec0e197ed4a3e57 (diff)
downloadprosody-103b279022a8476465aca894a47ef2f4a955c120.tar.gz
prosody-103b279022a8476465aca894a47ef2f4a955c120.zip
mod_admin_adhoc: Support for reloading multiple modules
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r--util/prosodyctl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 3e6e90ee..40d21be8 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -41,9 +41,9 @@ function adduser(params)
end
storagemanager.initialize_host(host);
- local ok = usermanager.create_user(user, password, host);
+ local ok, errmsg = usermanager.create_user(user, password, host);
if not ok then
- return false, "unable-to-save-data";
+ return false, errmsg;
end
return true;
end