summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php
index f7fe1620..51fedf46 100644
--- a/inc/display.php
+++ b/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)) {