diff --git a/web/includes/functions.php b/web/includes/functions.php index 9ee3f68be..1cb0e4a95 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -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 ) {