diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-23 17:46:08 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-23 17:46:08 +0100 |
commit | eae6471105920654863f024020af91d219c82013 (patch) | |
tree | 0481bf93504219127271b3395d4e93e2539dbe36 /core | |
parent | bcd10d3dc52f2a6fa187895526eac05b48ddb7f9 (diff) | |
download | nextcloud-server-eae6471105920654863f024020af91d219c82013.tar.gz nextcloud-server-eae6471105920654863f024020af91d219c82013.zip |
Fix error handling
Diffstat (limited to 'core')
-rw-r--r-- | core/command/maintenance/install.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/command/maintenance/install.php b/core/command/maintenance/install.php index 38074adf11a..0b01afc20ed 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('<error>' . (string)$error['error'] . '</error>'); + $output->writeln('<info> -> ' . (string)$error['hint'] . '</info>'); + } else { + $output->writeln('<error>' . (string)$error . '</error>'); + } } return 1; |