mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-07 06:37:44 +02:00
only exit with nonzero exit code if there was an error
This commit is contained in:
parent
79e0d6ecc2
commit
b0dc82dc7e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user