Skip to content

Commit ab63c2e

Browse files
authored
Merge pull request #28578 from nextcloud/backport/28574/stable20
[stable20] Log exception message during failed ownership transfer share restore
2 parents 0c9b022 + 3108f13 commit ab63c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/lib/Service/OwnershipTransferService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private function restoreShares(string $sourceUid,
351351
} catch (\OCP\Files\NotFoundException $e) {
352352
$output->writeln('<error>Share with id ' . $share->getId() . ' points at deleted file, skipping</error>');
353353
} catch (\Throwable $e) {
354-
$output->writeln('<error>Could not restore share with id ' . $share->getId() . ':' . $e->getTraceAsString() . '</error>');
354+
$output->writeln('<error>Could not restore share with id ' . $share->getId() . ':' . $e->getMessage() . ' : ' . $e->getTraceAsString() . '</error>');
355355
}
356356
$progress->advance();
357357
}

0 commit comments

Comments
 (0)