Browse Source

display backtrace when error on rebuilding from CLI

pull/40/head
czaks 9 years ago
parent
commit
28b9584a7b
  1. 4
      inc/display.php

4
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)) {

Loading…
Cancel
Save