Merge pull request #15674 from owncloud/fix-console-check-output
Convert error and hint to string before writing to the output
This commit is contained in:
commit
c7e5e30b86
|
@ -52,8 +52,8 @@ class Application {
|
||||||
$errors = \OC_Util::checkServer(\OC::$server->getConfig());
|
$errors = \OC_Util::checkServer(\OC::$server->getConfig());
|
||||||
if (!empty($errors)) {
|
if (!empty($errors)) {
|
||||||
foreach ($errors as $error) {
|
foreach ($errors as $error) {
|
||||||
$output->writeln($error['error']);
|
$output->writeln((string)$error['error']);
|
||||||
$output->writeln($error['hint']);
|
$output->writeln((string)$error['hint']);
|
||||||
$output->writeln('');
|
$output->writeln('');
|
||||||
}
|
}
|
||||||
throw new \Exception("Environment not properly prepared.");
|
throw new \Exception("Environment not properly prepared.");
|
||||||
|
|
Loading…
Reference in New Issue