Improved error message when installation fails

This commit is contained in:
Alejandro Celaya 2017-12-31 19:31:35 +01:00
parent da21eb4a5c
commit 3243ade4fd

View file

@ -100,9 +100,9 @@ class InstallCommand extends Command
$this->filesystem->remove('data/cache/app_config.php'); $this->filesystem->remove('data/cache/app_config.php');
$this->io->writeln(' <info>Success</info>'); $this->io->writeln(' <info>Success</info>');
} catch (IOException $e) { } catch (IOException $e) {
$this->io->writeln( $this->io->error(
' <error>Failed!</error> You will have to manually delete the data/cache/app_config.php file to get' 'Failed! You will have to manually delete the data/cache/app_config.php file to'
. ' new config applied.' . ' get new config applied.'
); );
if ($this->io->isVerbose()) { if ($this->io->isVerbose()) {
$this->getApplication()->renderException($e, $output); $this->getApplication()->renderException($e, $output);