From eae6471105920654863f024020af91d219c82013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 23 Feb 2015 17:46:08 +0100 Subject: [PATCH] Fix error handling --- core/command/maintenance/install.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/command/maintenance/install.php b/core/command/maintenance/install.php index 38074adf11..0b01afc20e 100644 --- a/core/command/maintenance/install.php +++ b/core/command/maintenance/install.php @@ -46,7 +46,12 @@ class Install extends Command { return 0; } foreach($errors as $error) { - $output->writeln((string)$error); + if (is_array($error)) { + $output->writeln('' . (string)$error['error'] . ''); + $output->writeln(' -> ' . (string)$error['hint'] . ''); + } else { + $output->writeln('' . (string)$error . ''); + } } return 1;