Commit abe8420e authored by Dietmar Maurer's avatar Dietmar Maurer

catch errors on response decoding

parent 8998ef92
...@@ -319,8 +319,10 @@ Ext.define('PVE.Utils', { statics: { ...@@ -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.';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment