diff options
Diffstat (limited to 'include/errorhandler.php')
| -rw-r--r-- | include/errorhandler.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php index 2b6d51a7d..a20ee05b0 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -81,7 +81,10 @@ function ttrss_fatal_handler(): bool { } if (class_exists("Logger")) - return Logger::log_error((int)$errno, $errstr, $file, (int)$line, $context); + Logger::log_error((int)$errno, $errstr, $file, (int)$line, $context); + + if (php_sapi_name() == 'cli') + exit(1); } return false; |