]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log RuntimeException in CleanupCardDAVPhotoCache 16414/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 15 Jul 2019 20:26:08 +0000 (22:26 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Tue, 16 Jul 2019 06:06:01 +0000 (06:06 +0000)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/Repair/NC16/CleanupCardDAVPhotoCache.php

index 92ffcb54742e7046ce35c3f351c2b3f057689f37..f0e5c2b2a1f1f72e4b2260e61f86f78726b71996 100644 (file)
@@ -64,7 +64,10 @@ class CleanupCardDAVPhotoCache implements IRepairStep {
        private function repair(IOutput $output): void {
                try {
                        $folders = $this->appData->getDirectoryListing();
-               } catch (NotFoundException|RuntimeException $e) {
+               } catch (NotFoundException $e) {
+                       return;
+               } catch (RuntimeException $e) {
+                       $this->logger->logException($e, ['message' => 'Failed to fetch directory listing in CleanupCardDAVPhotoCache']);
                        return;
                }