Show a nicer error when vendor folder is missing
This commit is contained in:
parent
b40554fd64
commit
b8bb95fc37
|
|
@ -13,7 +13,14 @@ define('LARAVEL_START', microtime(true));
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require __DIR__.'/../vendor/october/rain/src/Support/helpers.php';
|
$helperPath = __DIR__.'/../vendor/october/rain/src/Support/helpers.php';
|
||||||
|
|
||||||
|
if (!file_exists($helperPath)) {
|
||||||
|
echo 'Missing vendor files, try running "composer install" or use the Wizard installer.'.PHP_EOL;
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
require $helperPath;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue