Browse Source

web: fix quota scan error message

Nicola Murino 5 years ago
parent
commit
24914e90d1
1 changed files with 5 additions and 1 deletions
  1. 5 1
      templates/users.html

+ 5 - 1
templates/users.html

@@ -183,7 +183,11 @@
                         if ($xhr) {
                         if ($xhr) {
                             var json = $xhr.responseJSON;
                             var json = $xhr.responseJSON;
                             if (json) {
                             if (json) {
-                                txt += ": " + json.error;
+                                if (json.message) {
+                                    txt += ": " + json.message;
+                                } else if (json.error) {
+                                    txt += ": " + json.error;
+                                }
                             }
                             }
                         }
                         }
                         $('#errorTxt').text(txt);
                         $('#errorTxt').text(txt);