Convert error and hint to string before writing to the output - fixes https://mailman.owncloud.org/pipermail/devel/2015-April/001184.html
This commit is contained in:
parent
2e06cf49a5
commit
07243f0482
|
@ -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