diff --git a/lib/ajax/service.php b/lib/ajax/service.php index 43ce3f70438..01c77d40c99 100644 --- a/lib/ajax/service.php +++ b/lib/ajax/service.php @@ -99,6 +99,7 @@ foreach ($requests as $request) { } catch (Exception $e) { $jsonexception = get_exception_info($e); unset($jsonexception->a); + $jsonexception->backtrace = format_backtrace($jsonexception->backtrace, true); if (!debugging('', DEBUG_DEVELOPER)) { unset($jsonexception->debuginfo); unset($jsonexception->backtrace);