display backtrace when error on rebuilding from CLI
This commit is contained in:
parent
6685333bd3
commit
28b9584a7b
@ -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…
Reference in New Issue
Block a user