Skip to content

Commit 7b70211

Browse files
authored
Replace Octane::writeError with die statements (#1057)
the autoloader still not exist so it can not find the class
1 parent 0ad4024 commit 7b70211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
$basePath = $_SERVER['APP_BASE_PATH'] ?? $_ENV['APP_BASE_PATH'] ?? $serverState['octaneConfig']['base_path'] ?? null;
2121

2222
if (! is_string($basePath)) {
23-
Octane::writeError('Cannot find application base path.');
23+
die('Cannot find application base path.');
2424

2525
exit(11);
2626
}
@@ -40,7 +40,7 @@
4040
$vendorDir = $_ENV['COMPOSER_VENDOR_DIR'] ?? "{$basePath}/vendor";
4141

4242
if (! is_file($autoload_file = "{$vendorDir}/autoload.php")) {
43-
Octane::writeError("Composer autoload file was not found. Did you install the project's dependencies?");
43+
die("Composer autoload file was not found. Did you install the project's dependencies?");
4444

4545
exit(10);
4646
}

0 commit comments

Comments
 (0)