diff options
-rw-r--r-- | web/app/ErrorManager.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/app/ErrorManager.js b/web/app/ErrorManager.js index e55719571..77e5ae373 100644 --- a/web/app/ErrorManager.js +++ b/web/app/ErrorManager.js @@ -27,7 +27,11 @@ Ext.define('Traccar.ErrorManager', { return false; } } else { - Ext.Msg.alert(strings.errorTitle, response.statusText); + if (response.statusText) { + Ext.Msg.alert(strings.errorTitle, response.statusText); + } else { + Ext.Msg.alert(strings.errorTitle, response.status.toString()); // TODO: text message + } return false; } }, |