From 5d852ba111960aa7f4af5f21720adc4e71ae5d56 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 22 May 2007 13:25:31 +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 cbcdbd1950..81b0a2da7d 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5062,6 +5062,8 @@ function error ($message, $link='') { 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(); -- 2.39.5