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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user