Show a nicer error when vendor folder is missing

This commit is contained in:
Samuel Georges 2015-05-28 00:17:53 +10:00
parent b40554fd64
commit b8bb95fc37
1 changed files with 8 additions and 1 deletions

View File

@ -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;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------