From 61e50ff3cf4c6a8a1c17a674fff1f407931e1bec Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 16 Feb 2015 16:34:45 -0800 Subject: [PATCH] Show what line an error occured on by default --- inc/display.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/display.php b/inc/display.php index 89e32fed..bd180f5a 100644 --- a/inc/display.php +++ b/inc/display.php @@ -73,6 +73,9 @@ function createBoardlist($mod=false) { function error($message, $priority = true, $debug_stuff = false) { global $board, $mod, $config, $db_error; + + if (isset($debug_stuff['file'])) + $message .= " {$debug_stuff['file']}"; if ($config['syslog'] && $priority !== false) { // Use LOG_NOTICE instead of LOG_ERR or LOG_WARNING because most error message are not significant.