fix: Log exceptions thrown by setup checks

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44270/head
Côme Chilliet 2 months ago
parent a0a957c961
commit 0ea2913ac3
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A

@ -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…
Cancel
Save