summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-23 17:46:08 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-23 17:46:08 +0100
commiteae6471105920654863f024020af91d219c82013 (patch)
tree0481bf93504219127271b3395d4e93e2539dbe36 /core
parentbcd10d3dc52f2a6fa187895526eac05b48ddb7f9 (diff)
downloadnextcloud-server-eae6471105920654863f024020af91d219c82013.tar.gz
nextcloud-server-eae6471105920654863f024020af91d219c82013.zip
Fix error handling
Diffstat (limited to 'core')
-rw-r--r--core/command/maintenance/install.php7
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;