|
@@ -1,9 +1,9 @@
|
|
function getError(action, option, xhr) {
|
|
function getError(action, option, xhr) {
|
|
let msg;
|
|
let msg;
|
|
if (xhr.response) {
|
|
if (xhr.response) {
|
|
- msg = `${xhr.status} ${xhr.response.error || xhr.response}`;
|
|
|
|
|
|
+ msg = `${xhr.response.error || xhr.response}`;
|
|
} else if (xhr.responseText) {
|
|
} else if (xhr.responseText) {
|
|
- msg = `${xhr.status} ${xhr.responseText}`;
|
|
|
|
|
|
+ msg = `${xhr.responseText}`;
|
|
} else {
|
|
} else {
|
|
msg = `fail to post ${action} ${xhr.status}`;
|
|
msg = `fail to post ${action} ${xhr.status}`;
|
|
}
|
|
}
|