mirror of
https://github.com/axllent/mailpit.git
synced 2025-01-16 02:47:11 +02:00
UI: Better error handling when connection to server is broken
This commit is contained in:
parent
29c7295d16
commit
c9c910ab7c
@ -27,7 +27,7 @@ const commonMixins = {
|
||||
// Ajax error message
|
||||
handleError: function (error) {
|
||||
// handle error
|
||||
if (error.response) {
|
||||
if (error.response && error.response.data) {
|
||||
// The request was made and the server responded with a status code
|
||||
// that falls out of the range of 2xx
|
||||
if (error.response.data.Error) {
|
||||
|
Loading…
Reference in New Issue
Block a user