mirror of https://github.com/nextcloud/server
fix: Log exceptions thrown by setup checks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
a0a957c961
commit
0ea2913ac3
|
@ -51,6 +51,7 @@ class SetupCheckManager implements ISetupCheckManager {
|
|||
$setupResult = $setupCheckObject->run();
|
||||
} catch (\Throwable $t) {
|
||||
$setupResult = SetupResult::error("An exception occured while running the setup check:\n$t");
|
||||
$this->logger->error('Exception running check '.get_class($setupCheckObject).': '.$t->getMessage(), ['exception' => $t]);
|
||||
}
|
||||
$setupResult->setName($setupCheckObject->getName());
|
||||
$category = $setupCheckObject->getCategory();
|
||||
|
|
Loading…
Reference in New Issue