From ffcf27c75743009fda4e755756d578036c892472 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 24 Aug 2021 09:19:52 +0200 Subject: [PATCH] Log exception message during failed ownership transfer share restore Signed-off-by: Christoph Wurst --- apps/files/lib/Service/OwnershipTransferService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index 8c4c078758e43..cc54df5054197 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -349,7 +349,7 @@ private function restoreShares(string $sourceUid, } catch (\OCP\Files\NotFoundException $e) { $output->writeln('Share with id ' . $share->getId() . ' points at deleted file, skipping'); } catch (\Throwable $e) { - $output->writeln('Could not restore share with id ' . $share->getId() . ':' . $e->getTraceAsString() . ''); + $output->writeln('Could not restore share with id ' . $share->getId() . ':' . $e->getMessage() . ' : ' . $e->getTraceAsString() . ''); } $progress->advance(); }