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