Mercurial > prosody-modules
changeset 6331:6a3b38051d74
mod_http_admin_api: get_user_info: Fix missing error return
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 01 Oct 2025 18:16:25 +0100 |
| parents | 4e63151010bf |
| children | 1fc38a840baa |
| files | mod_http_admin_api/mod_http_admin_api.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua Wed Oct 01 12:00:09 2025 +0100 +++ b/mod_http_admin_api/mod_http_admin_api.lua Wed Oct 01 18:16:25 2025 +0100 @@ -224,7 +224,7 @@ local function get_user_info(username) if not usermanager.user_exists(username, module.host) then - return nil; + return nil, "user-not-found"; end local display_name; do
