From b8bb95fc37a0b404ad8e23a9751ffbc2cc655e65 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Thu, 28 May 2015 00:17:53 +1000 Subject: [PATCH] Show a nicer error when vendor folder is missing --- bootstrap/autoload.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index 09998ab94..44247d105 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -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; /* |--------------------------------------------------------------------------