mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 06:38:39 +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) {
|
if (options.waitMsgTarget) {
|
||||||
options.waitMsgTarget.setLoading(false);
|
options.waitMsgTarget.setLoading(false);
|
||||||
}
|
}
|
||||||
var result = Ext.decode(response.responseText);
|
response.result = {};
|
||||||
response.result = result || {};
|
try {
|
||||||
|
response.result = Ext.decode(response.responseText);
|
||||||
|
} catch(e) {};
|
||||||
var msg = "Connection error - server offline?";
|
var msg = "Connection error - server offline?";
|
||||||
if (response.aborted) {
|
if (response.aborted) {
|
||||||
msg = 'Transaction aborted.';
|
msg = 'Transaction aborted.';
|
||||||
|
Loading…
Reference in New Issue
Block a user