diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-01 14:32:34 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-01 14:32:34 +1300 |
commit | a35f072d6a97f44910f9bf044096e291ffc38907 (patch) | |
tree | 29f8cf7f894dee9cb6a3a6d76f6d0ce13d451c30 /web/app | |
parent | 854476dcd9bb9b3b48d297cb7369cfe719c492f9 (diff) | |
download | trackermap-web-a35f072d6a97f44910f9bf044096e291ffc38907.tar.gz trackermap-web-a35f072d6a97f44910f9bf044096e291ffc38907.tar.bz2 trackermap-web-a35f072d6a97f44910f9bf044096e291ffc38907.zip |
Update resource error handling
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/Application.js | 7 |
1 files changed, 1 insertions, 6 deletions
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 { |