This commit is contained in:
@@ -130,6 +130,15 @@ export default {
|
||||
msg += "\n";
|
||||
}
|
||||
dealWithError(msg, vm);
|
||||
} else if (err instanceof Response) {
|
||||
let msg =
|
||||
"http error: " +
|
||||
err.statusText +
|
||||
" - " +
|
||||
err.status +
|
||||
" Url: " +
|
||||
err.url;
|
||||
dealWithError(msg, vm);
|
||||
} else {
|
||||
//last resort
|
||||
let msg = JSON.stringify(err);
|
||||
|
||||
Reference in New Issue
Block a user