mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-09 04:37:33 +08:00
Update resource error handling
This commit is contained in:
parent
854476dcd9
commit
a35f072d6a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user