When using DEBUG_DEVELOPER, make error(...) output a stack trace.

This commit is contained in:
tjhunt
2007-05-22 13:25:06 +00:00
parent 6f304b3251
commit 46b515a48c
+2
View File
@@ -4785,6 +4785,8 @@ function error ($message, $link='', $adminroot=false) {
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();