web: fix quota scan error message
This commit is contained in:
parent
587c8a0347
commit
24914e90d1
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue