]> git.mjollnir.org Git - moodle.git/commitdiff
When using DEBUG_DEVELOPER, make error(...) output a stack trace.
authortjhunt <tjhunt>
Tue, 22 May 2007 13:25:31 +0000 (13:25 +0000)
committertjhunt <tjhunt>
Tue, 22 May 2007 13:25:31 +0000 (13:25 +0000)
lib/weblib.php

index cbcdbd19503eb8fa235127eecdcc20546398cfe1..81b0a2da7d2e145b59870a3652ff05a37a396007 100644 (file)
@@ -5062,6 +5062,8 @@ function error ($message, $link='') {
     echo '<br />';
     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();