From a0c9cec5beb28448073b127c31df23134336f4cf Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 2 Dec 2015 12:06:00 +1300 Subject: Implement REST login in the web app --- web/app/Application.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/app/Application.js') 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); -- cgit v1.2.3