Merge pull request #28574 from nextcloud/fix/transfer-ownership-restore-share-error-logging

Log exception message during failed ownership transfer share restore
This commit is contained in:
Christoph Wurst 2021-08-24 11:55:56 +02:00 committed by GitHub
commit a7aa200c33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,7 @@ class OwnershipTransferService {
} catch (\OCP\Files\NotFoundException $e) {
$output->writeln('<error>Share with id ' . $share->getId() . ' points at deleted file, skipping</error>');
} catch (\Throwable $e) {
$output->writeln('<error>Could not restore share with id ' . $share->getId() . ':' . $e->getTraceAsString() . '</error>');
$output->writeln('<error>Could not restore share with id ' . $share->getId() . ':' . $e->getMessage() . ' : ' . $e->getTraceAsString() . '</error>');
}
$progress->advance();
}