From 981f6d853de0b65955b9e35f2cd3d40a64ad3068 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Oct 2021 11:25:44 +0200 Subject: [PATCH] also output file and line of exception for json requests --- json.php | 1 + 1 file changed, 1 insertion(+) diff --git a/json.php b/json.php index 74025d96ec..2229aa645c 100644 --- a/json.php +++ b/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']) {