display backtrace when error on rebuilding from CLI

This commit is contained in:
czaks 2014-04-27 16:01:41 +02:00
parent 6685333bd3
commit 28b9584a7b

View File

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