Skip to content

Commit 69a04c5

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: translate NotEnoughSpaceException to dav exception
fix: translate NotEnoughSpaceException to dav exception Signed-off-by: Robin Appelman <robin@icewind.nl> [skip ci]
1 parent 1149b08 commit 69a04c5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/dav/lib/Connector/Sabre/File.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,9 @@ private function convertToSabreException(\Exception $e) {
604604
if ($e instanceof NotFoundException) {
605605
throw new NotFound($this->l10n->t('File not found: %1$s', [$e->getMessage()]), 0, $e);
606606
}
607+
if ($e instanceof Files\NotEnoughSpaceException) {
608+
throw new EntityTooLarge($this->l10n->t('Insufficient space'), 0, $e);
609+
}
607610

608611
throw new \Sabre\DAV\Exception($e->getMessage(), 0, $e);
609612
}

0 commit comments

Comments
 (0)