1
0
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:
Ralph Slooten 2022-08-07 10:21:08 +12:00
parent 29c7295d16
commit c9c910ab7c

View File

@ -27,7 +27,7 @@ const commonMixins = {
// Ajax error message // Ajax error message
handleError: function (error) { handleError: function (error) {
// handle error // handle error
if (error.response) { if (error.response && error.response.data) {
// The request was made and the server responded with a status code // The request was made and the server responded with a status code
// that falls out of the range of 2xx // that falls out of the range of 2xx
if (error.response.data.Error) { if (error.response.data.Error) {