]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log exception message during failed ownership transfer share restore 28576/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 24 Aug 2021 07:19:52 +0000 (09:19 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 24 Aug 2021 09:58:36 +0000 (09:58 +0000)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
apps/files/lib/Service/OwnershipTransferService.php

index 8c4c078758e43f6d98a729018bccc8d0971da50d..cc54df505419758e177c2e218f35d0e807de3560 100644 (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();
                }