mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
also output file and line of exception for json requests
This commit is contained in:
parent
13e717ce68
commit
981f6d853d
1
json.php
1
json.php
@ -60,6 +60,7 @@ function ajax_exception_handler($e)
|
||||
$response = Json\Response::get();
|
||||
$message .= ($message ? "\n\n" : '').$e->getMessage();
|
||||
|
||||
$message .= "\n\n".$e->getFile().' ('.$e->getLine().')';
|
||||
// only show trace (incl. function arguments) if explicitly enabled, eg. on a development system
|
||||
if ($GLOBALS['egw_info']['server']['exception_show_trace'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user