web: fix quota scan error message

This commit is contained in:
Nicola Murino 2019-10-13 13:08:19 +02:00
parent 587c8a0347
commit 24914e90d1

View file

@ -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);