Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add verbose error message for layer 8 issue #419

Merged
merged 1 commit into from
Feb 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions Classes/Core/ConsoleBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ public function initialize(\Composer\Autoload\ClassLoader $classLoader)
$this->requestId = uniqid('console_request_', true);
$this->initializePackageManagement();

if (!class_exists(RunLevel::class)) {
echo sprintf('Could not initialize TYPO3 Console for TYPO3 in path %s.', PATH_site) . chr(10);
echo 'This most likely happened because you have a console code checkout in typo3conf/ext/typo3_console,' . chr(10);
echo 'but TYPO3 Console is not set up as extension. If you want to use it as extension,' . chr(10);
echo 'please download it from https://typo3.org/extensions/repository/view/typo3_console' . chr(10);
echo 'or install it properly using Composer.' . chr(10);
exit(1);
}

$this->runLevel = new RunLevel();
$this->setEarlyInstance(\Helhum\Typo3Console\Core\Booting\RunLevel::class, $this->runLevel);
$exceptionHandler = new ExceptionHandler();
Expand Down