diff options
| -rw-r--r-- | include/errorhandler.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php index 2b6d51a7d..027cf2a6f 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -84,6 +84,9 @@ function ttrss_fatal_handler(): bool { return Logger::log_error((int)$errno, $errstr, $file, (int)$line, $context); } + if (php_sapi_name() == 'cli') + exit(1); + return false; } |