Update resource error handling

This commit is contained in:
Anton Tananaev 2016-11-01 14:32:34 +13:00
parent 854476dcd9
commit a35f072d6a

View File

@ -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 {