also output file and line of exception for json requests

This commit is contained in:
Ralf Becker 2021-10-11 11:25:44 +02:00
parent 13e717ce68
commit 981f6d853d

View File

@ -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'])
{