mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
If error details are included, show them in the log
This commit is contained in:
parent
ea6ad0129a
commit
80706f34b7
@ -248,6 +248,7 @@ egw_json_request.prototype.sendRequest = function(_async, _callback, _sender)
|
|||||||
egw_json_request.prototype.alertFunc = function(_message, _details)
|
egw_json_request.prototype.alertFunc = function(_message, _details)
|
||||||
{
|
{
|
||||||
alert(_message);
|
alert(_message);
|
||||||
|
if(_details) _egw_json_debug_log(_message, _details);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _egw_json_debug_log(_msg, _e)
|
function _egw_json_debug_log(_msg, _e)
|
||||||
@ -264,7 +265,7 @@ egw_json_request.prototype.jsonError = function(_msg, _e)
|
|||||||
var msg = 'EGW JSON Error: '._msg;
|
var msg = 'EGW JSON Error: '._msg;
|
||||||
|
|
||||||
//Log and show the error message
|
//Log and show the error message
|
||||||
_egw_json_bebug_log(msg, _e);
|
_egw_json_debug_log(msg, _e);
|
||||||
this.alertHandler(msg);
|
this.alertHandler(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user