mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 23:46:12 +00:00
catch errors on response decoding
This commit is contained in:
parent
61ca4432be
commit
52406c4273
@ -319,8 +319,10 @@ Ext.define('PVE.Utils', { statics: {
|
||||
if (options.waitMsgTarget) {
|
||||
options.waitMsgTarget.setLoading(false);
|
||||
}
|
||||
var result = Ext.decode(response.responseText);
|
||||
response.result = result || {};
|
||||
response.result = {};
|
||||
try {
|
||||
response.result = Ext.decode(response.responseText);
|
||||
} catch(e) {};
|
||||
var msg = "Connection error - server offline?";
|
||||
if (response.aborted) {
|
||||
msg = 'Transaction aborted.';
|
||||
|
Loading…
Reference in New Issue
Block a user