From: tjhunt Date: Tue, 22 May 2007 13:25:31 +0000 (+0000) Subject: When using DEBUG_DEVELOPER, make error(...) output a stack trace. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5d852ba111960aa7f4af5f21720adc4e71ae5d56;p=moodle.git When using DEBUG_DEVELOPER, make error(...) output a stack trace. --- 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();