Skip to content

Commit 7c4b601

Browse files
committed
fix: translate NotEnoughSpaceException to dav exception
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 9f5535d commit 7c4b601

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
@@ -621,6 +621,9 @@ private function convertToSabreException(\Exception $e) {
621621
if ($e instanceof NotFoundException) {
622622
throw new NotFound($this->l10n->t('File not found: %1$s', [$e->getMessage()]), 0, $e);
623623
}
624+
if ($e instanceof Files\NotEnoughSpaceException) {
625+
throw new EntityTooLarge($this->l10n->t('Insufficient space'), 0, $e);
626+
}
624627

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

0 commit comments

Comments
 (0)