diff options
Diffstat (limited to 'web/app/Application.js')
-rw-r--r-- | web/app/Application.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js index 34d65d13a..5cc192686 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -79,7 +79,9 @@ Ext.define('Traccar.Application', { }, showError: function (response) { - if (response.statusText) { + if (Ext.isString(response)) { + Ext.Msg.alert(Strings.errorTitle, response); + } else if (response.statusText) { Ext.Msg.alert(Strings.errorTitle, response.statusText); } else { Ext.Msg.alert(Strings.errorTitle, Strings.errorConnection); |