diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-07-04 13:24:28 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-07-04 13:24:28 +0300 |
| commit | 9b38a5757086e856f8086995874cf961e38328a7 (patch) | |
| tree | 7bdee6132aeb652fcdca074ebd76cdc31330c9df /include/errorhandler.php | |
| parent | 0034cd69f8225c37769a093339e5c589dc9f4335 (diff) | |
| parent | b0dc82dc7e50e39f589cc0e417385532bebb9821 (diff) | |
Merge branch 'housekeeping' into 'master'
Housekeeping
See merge request tt-rss/tt-rss!160
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; |