Browse Source

Log exception message during failed ownership transfer share restore

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/28574/head
Christoph Wurst 4 years ago
parent
commit
ffcf27c757
No known key found for this signature in database GPG Key ID: CC42AC2A7F0E56D8
  1. 2
      apps/files/lib/Service/OwnershipTransferService.php

2
apps/files/lib/Service/OwnershipTransferService.php

@ -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();
}

Loading…
Cancel
Save