Output the path to `autoload.php` when exiting due to its non-existance

This commit is contained in:
Asbjørn Ulsberg 2017-11-13 21:10:37 +01:00
parent a1174e1732
commit a35cf4ec07
No known key found for this signature in database
GPG Key ID: 34616339C3D5E883
1 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,9 @@ $templatePath = $baseDir . '/templates';
$consoleTemplatePath = $baseDir . '/src/Resume/Templates';
// If the dependencies aren't installed, we have to bail and offer some help.
if (!file_exists($baseDir . '/vendor/autoload.php')) {
exit("\nPlease run `composer install` to install dependencies.\n\n");
$autoloadPath = $baseDir . '/vendor/autoload.php';
if (!file_exists($autoloadPath)) {
exit("\nThe dependency '$autoloadPath' was not found. Please run `composer install` to install dependencies.\n\n");
}
// Bootstrap our application with the Composer autoloader