fix: translate NotEnoughSpaceException to dav exception

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-04-29 19:15:26 +02:00
parent 9f5535d01b
commit 7c4b601793

View file

@ -621,6 +621,9 @@ class File extends Node implements IFile {
if ($e instanceof NotFoundException) {
throw new NotFound($this->l10n->t('File not found: %1$s', [$e->getMessage()]), 0, $e);
}
if ($e instanceof Files\NotEnoughSpaceException) {
throw new EntityTooLarge($this->l10n->t('Insufficient space'), 0, $e);
}
throw new \Sabre\DAV\Exception($e->getMessage(), 0, $e);
}