diff options
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index cb84af50..5c5b0b48 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1728,7 +1728,7 @@ function def_env.user:create(jid, password, role) return promise.resolve(password or self.session.request_input("password")):next(function (password_) local ok, err = um.create_user_with_role(username, password_, host, role); if not ok then - return nil, "Could not create user: "..err; + return promise.reject("Could not create user: "..err); end return ("Created %s with role '%s'"):format(jid, role); end); |