]> source.dussan.org Git - nextcloud-server.git/commit
Catch \Error in Transfer::restoreShares
authorTobia De Koninck <LEDfan@users.noreply.github.com>
Fri, 3 Jan 2020 07:50:37 +0000 (08:50 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 3 Feb 2020 10:15:56 +0000 (11:15 +0100)
commit055ae9b2cd9f37f854d3c8c4f7e2051cd116fa53
treea0e1abd57a7ccea6295f5291fe3d2f08712d879d
parent97508f69ec5046c3876912b80530c7a164ce49f9
Catch \Error in Transfer::restoreShares

This makes the command more fault tolerant. An \Error can happen when
e.g. the owner of a share is null.
If we don't catch this, the restore process will stop in an unknown
state.

Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
apps/files/lib/Service/OwnershipTransferService.php