Skip to content

Commit 9fd92da

Browse files
Check for existence of vendor directory for better error message (#1301)
1 parent 88999ac commit 9fd92da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

symfony/console/5.3/bin/console

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
use App\Kernel;
55
use Symfony\Bundle\FrameworkBundle\Console\Application;
66

7+
if (!is_dir(dirname(__DIR__).'/vendor')) {
8+
throw new LogicException('Dependencies are missing. Try running "composer install".');
9+
}
10+
711
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
812
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
913
}

0 commit comments

Comments
 (0)