1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-10 10:34:15 +02:00

fix: early warning if file permission problem (#3944)

This commit is contained in:
Dag
2024-02-02 18:06:08 +01:00
committed by GitHub
parent 81be72ea04
commit b964dcd936
2 changed files with 12 additions and 0 deletions

View File

@@ -6,6 +6,12 @@ if (version_compare(\PHP_VERSION, '7.4.0') === -1) {
exit;
}
if (! is_readable(__DIR__ . '/lib/bootstrap.php')) {
http_response_code(500);
print 'Unable to read lib/bootstrap.php. Check file permissions.';
exit;
}
require_once __DIR__ . '/lib/bootstrap.php';
set_exception_handler(function (\Throwable $e) {