summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-20 23:16:15 +0200
committerczaks <marcin@6irc.net>2014-04-20 23:16:15 +0200
commitb87d3d76d5c2292a9db0b157a8a279ff45177bd2 (patch)
tree1fce187199f63607d88d73e9612fda1c9e74a917
parent4f5ba1d822a06747c950091aa81117d7dd7b2017 (diff)
improve debugging
-rw-r--r--inc/display.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php
index 13425c48..f7fe1620 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -88,6 +88,10 @@ function error($message, $priority = true, $debug_stuff = false) {
$debug_stuff = array_combine(array('SQLSTATE', 'Error code', 'Error message'), $db_error);
}
+ if ($config['debug']) {
+ $debug_stuff['backtrace'] = debug_backtrace();
+ }
+
// Return the bad request header, necessary for AJAX posts
// czaks: is it really so? the ajax errors only work when this is commented out
// better yet use it when ajax is disabled