Enhance error message to include request info

This commit is contained in:
Nathan Gray 2014-05-27 14:53:34 +00:00
parent 9924612245
commit eaccfdfe1d

View File

@ -163,7 +163,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) {
} catch(e) {
var msg = e.message ? e.message : e + '';
var stack = e.stack ? "\n-- Stack trace --\n" + e.stack : ""
this.egw.debug('error', 'Exception "' + msg + '" while handling JSON response type "' + res.type + '", plugin', plugin, 'response', res, stack);
this.egw.debug('error', 'Exception "' + msg + '" while handling JSON response from ' + this.url + ' [' + JSON.stringify(this.parameters) + '] type "' + res.type + '", plugin', plugin, 'response', res, stack);
}
}
}