diff --git a/templates/users.html b/templates/users.html index 9c93bc00..a36dd4db 100644 --- a/templates/users.html +++ b/templates/users.html @@ -183,7 +183,11 @@ if ($xhr) { var json = $xhr.responseJSON; if (json) { - txt += ": " + json.error; + if (json.message) { + txt += ": " + json.message; + } else if (json.error) { + txt += ": " + json.error; + } } } $('#errorTxt').text(txt);