Skip to content

Commit c81fd49

Browse files
authored
Merge pull request #28577 from nextcloud/backport/28574/stable21
[stable21] Log exception message during failed ownership transfer share restore
2 parents 61216dc + aa8a710 commit c81fd49

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
@@ -350,7 +350,7 @@ private function restoreShares(string $sourceUid,
350350
} catch (\OCP\Files\NotFoundException $e) {
351351
$output->writeln('<error>Share with id ' . $share->getId() . ' points at deleted file, skipping</error>');
352352
} catch (\Throwable $e) {
353-
$output->writeln('<error>Could not restore share with id ' . $share->getId() . ':' . $e->getTraceAsString() . '</error>');
353+
$output->writeln('<error>Could not restore share with id ' . $share->getId() . ':' . $e->getMessage() . ' : ' . $e->getTraceAsString() . '</error>');
354354
}
355355
$progress->advance();
356356
}

0 commit comments

Comments
 (0)