display backtrace when error on rebuilding from CLI

This commit is contained in:
czaks 2014-04-27 16:01:41 +02:00
parent 7bf662460c
commit 932c451f9e

View File

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