diff options
| author | czaks <marcin@6irc.net> | 2014-04-27 16:01:41 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-04-27 16:01:41 +0200 |
| commit | 28b9584a7bfd311adfa256f44d8207ccd26c61b0 (patch) | |
| tree | 2234a9977502798db7b7df94763c9768aa43b58d /inc | |
| parent | 6685333bd33f3ce259136c4c6ee6ba5c0f4c8fea (diff) | |
display backtrace when error on rebuilding from CLI
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/display.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php index 0ae0ac05..2cd4d3b0 100644 --- a/inc/display.php +++ b/inc/display.php @@ -81,7 +81,9 @@ function error($message, $priority = true, $debug_stuff = false) { if (defined('STDIN')) { // Running from CLI - die('Error: ' . $message . "\n"); + echo('Error: ' . $message . "\n"); + debug_print_backtrace(); + die(); } if ($config['debug'] && isset($db_error)) { |
