Skip to content

Commit

Permalink
Merge pull request #28574 from nextcloud/fix/transfer-ownership-resto…
Browse files Browse the repository at this point in the history
…re-share-error-logging

Log exception message during failed ownership transfer share restore
  • Loading branch information
ChristophWurst authored Aug 24, 2021
2 parents 28f0995 + ffcf27c commit a7aa200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Service/OwnershipTransferService.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private function restoreShares(string $sourceUid,
} 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();
}
Expand Down

0 comments on commit a7aa200

Please sign in to comment.