mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:16 +01:00
also output file and line of exception for json requests
This commit is contained in:
parent
8feac04979
commit
5756d8c6b2
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