display backtrace when error on rebuilding from CLI
This commit is contained in:
parent
7bf662460c
commit
932c451f9e
@ -81,7 +81,9 @@ function error($message, $priority = true, $debug_stuff = false) {
|
|||||||
|
|
||||||
if (defined('STDIN')) {
|
if (defined('STDIN')) {
|
||||||
// Running from CLI
|
// Running from CLI
|
||||||
die('Error: ' . $message . "\n");
|
echo('Error: ' . $message . "\n");
|
||||||
|
debug_print_backtrace();
|
||||||
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['debug'] && isset($db_error)) {
|
if ($config['debug'] && isset($db_error)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user