only exit with nonzero exit code if there was an error

This commit is contained in:
Andrew Dolgov
2025-07-04 13:22:06 +03:00
parent 79e0d6ecc2
commit b0dc82dc7e

View File

@@ -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;
}