]> source.dussan.org Git - nextcloud-server.git/commitdiff
Convert error and hint to string before writing to the output - fixes https://mailman...
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 16 Apr 2015 10:32:17 +0000 (12:32 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 16 Apr 2015 10:32:17 +0000 (12:32 +0200)
lib/private/console/application.php

index 551d69ef53cd2e77d9d7bd54d0afd03eee8baa5a..6d24665e01282661ac954f2f04014914569e0061 100644 (file)
@@ -52,8 +52,8 @@ class Application {
                        $errors = \OC_Util::checkServer(\OC::$server->getConfig());
                        if (!empty($errors)) {
                                foreach ($errors as $error) {
-                                       $output->writeln($error['error']);
-                                       $output->writeln($error['hint']);
+                                       $output->writeln((string)$error['error']);
+                                       $output->writeln((string)$error['hint']);
                                        $output->writeln('');
                                }
                                throw new \Exception("Environment not properly prepared.");