Fix error handling

This commit is contained in:
Thomas Müller 2015-02-23 17:46:08 +01:00
parent bcd10d3dc5
commit eae6471105
1 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,12 @@ class Install extends Command {
return 0;
}
foreach($errors as $error) {
$output->writeln((string)$error);
if (is_array($error)) {
$output->writeln('<error>' . (string)$error['error'] . '</error>');
$output->writeln('<info> -> ' . (string)$error['hint'] . '</info>');
} else {
$output->writeln('<error>' . (string)$error . '</error>');
}
}
return 1;