Skip to content

Commit b76cdd0

Browse files
committed
fix: catch all exceptions during trashbin cache move
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 921ee17 commit b76cdd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_trashbin/lib/Trashbin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public static function move2trash($file_path, $ownerOnly = false) {
355355
}
356356
$trashStorage->getUpdater()->update($trashInternalPath, null, $sizeDifference);
357357
}
358-
} catch (CopyRecursiveException $e) {
358+
} catch (\Exception $e) {
359359
$moveSuccessful = false;
360360
if ($trashStorage->file_exists($trashInternalPath)) {
361361
$trashStorage->unlink($trashInternalPath);

0 commit comments

Comments
 (0)