X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;ds=sidebyside;f=util%2Fprosodyctl.lua;h=40d21be86b617ac8a82230b88561720c28c96e10;hb=2cf93bbbe48b948a7aee22f172ffc1287baedd6c;hp=3e6e90eee7504a665dc5bf46e4fe61d56bd71ee3;hpb=ba3d8b1db7c6bab4a7051b35e6d41110c445f1d2;p=prosody.git 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