only exit with nonzero exit code if there was an error
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user