Add backtrace to ajaxError

pull/3462/head
Isaac Connor 2022-04-04 15:00:33 -04:00
parent 8046c21eeb
commit ed7c139fb3
1 changed files with 2 additions and 1 deletions

View File

@ -1899,7 +1899,8 @@ define('HTTP_STATUS_BAD_REQUEST', 400);
define('HTTP_STATUS_FORBIDDEN', 403);
function ajaxError($message, $code=HTTP_STATUS_OK) {
ZM\Error($message);
$backTrace = debug_backtrace();
ZM\Error($message.' from '.print_r($backTrace,true));
if ( function_exists('ajaxCleanup') )
ajaxCleanup();
if ( $code == HTTP_STATUS_OK ) {