From 46b515a48c164878d751bf7e492ef776181d42df Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 22 May 2007 13:25:06 +0000 Subject: [PATCH] When using DEBUG_DEVELOPER, make error(...) output a stack trace. --- lib/weblib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index 245f0030475..7c5ce0b27f9 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4785,6 +4785,8 @@ function error ($message, $link='', $adminroot=false) { echo '
'; print_simple_box($message, '', '', '', '', 'errorbox'); + debugging('Stack trace:', DEBUG_DEVELOPER); + // in case we are logging upgrade in admin/index.php stop it if (function_exists('upgrade_log_finish')) { upgrade_log_finish();