Commit 71587b59 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Add the exception to the sendjsonrequest callback failure message,

so we know _what_ happened
parent 3e01611d
......@@ -177,16 +177,16 @@ function sendjsonrequest(script, data, rtype, successcallback, errorcallback, qu
if (!quiet) {
displayMessage(data.message, errtype);
}
try { successcallback(data); } catch (e) { logError('sendjsonrequest() callback failed: ', data); }
try { successcallback(data); } catch (e) { logError('sendjsonrequest() callback failed: ', e, data); }
}
else if (data.message && typeof(data.message == 'object')) {
if (data.message.message && typeof(data.message.message == 'string') && !quiet) {
displayMessage(data.message.message, errtype);
}
try { successcallback(data.message); } catch (e) { logError('sendjsonrequest() callback failed: ', data); }
try { successcallback(data.message); } catch (e) { logError('sendjsonrequest() callback failed: ', e, data); }
}
else {
try { successcallback(data); } catch (e) { logError('sendjsonrequest() callback failed: ', data); }
try { successcallback(data); } catch (e) { logError('sendjsonrequest() callback failed: ', e, data); }
}
processingStop();
}
......
Supports Markdown
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