aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-01 14:32:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-01 14:32:34 +1300
commita35f072d6a97f44910f9bf044096e291ffc38907 (patch)
tree29f8cf7f894dee9cb6a3a6d76f6d0ce13d451c30 /web
parent854476dcd9bb9b3b48d297cb7369cfe719c492f9 (diff)
downloadetbsa-traccar-web-a35f072d6a97f44910f9bf044096e291ffc38907.tar.gz
etbsa-traccar-web-a35f072d6a97f44910f9bf044096e291ffc38907.tar.bz2
etbsa-traccar-web-a35f072d6a97f44910f9bf044096e291ffc38907.zip
Update resource error handling
Diffstat (limited to 'web')
-rw-r--r--web/app/Application.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index 743f8b1..0c1367e 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 {