mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-06 06:07:29 +02:00
return nonzero exit code when fatal error is triggered in on a CLI SAPI
This commit is contained in:
parent
7b4f039651
commit
c1542671c1
@ -84,6 +84,9 @@ function ttrss_fatal_handler(): bool {
|
|||||||
return Logger::log_error((int)$errno, $errstr, $file, (int)$line, $context);
|
return Logger::log_error((int)$errno, $errstr, $file, (int)$line, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (php_sapi_name() == 'cli')
|
||||||
|
exit(1);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user