From a35f072d6a97f44910f9bf044096e291ffc38907 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 1 Nov 2016 14:32:34 +1300 Subject: Update resource error handling --- web/app/Application.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'web/app/Application.js') diff --git a/web/app/Application.js b/web/app/Application.js index 743f8b11..0c1367ef 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -119,12 +119,7 @@ Ext.define('Traccar.Application', { if (Ext.isString(response)) { Ext.Msg.alert(Strings.errorTitle, response); } else if (response.responseText) { - data = Ext.decode(response.responseText); - if (data.details) { - Ext.Msg.alert(Strings.errorTitle, data.details); - } else { - Ext.Msg.alert(Strings.errorTitle, data.message); - } + Ext.Msg.alert(response.responseText); } else if (response.statusText) { Ext.Msg.alert(Strings.errorTitle, response.statusText); } else { -- cgit v1.2.3