diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-07-04 13:22:06 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-07-04 13:22:06 +0300 |
| commit | b0dc82dc7e50e39f589cc0e417385532bebb9821 (patch) | |
| tree | 7bdee6132aeb652fcdca074ebd76cdc31330c9df /include/errorhandler.php | |
| parent | 79e0d6ecc2a9ad09e7ec73576d1b8a1ace6b361c (diff) | |
only exit with nonzero exit code if there was an error
Diffstat (limited to 'include/errorhandler.php')
| -rw-r--r-- | include/errorhandler.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php index 027cf2a6f..a20ee05b0 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -81,11 +81,11 @@ 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); + if (php_sapi_name() == 'cli') + exit(1); + } return false; } |