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
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

View File

@ -81,11 +81,11 @@ function ttrss_fatal_handler(): bool {
} }
if (class_exists("Logger")) 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') if (php_sapi_name() == 'cli')
exit(1); exit(1);
}
return false; return false;
} }