mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: translate NotEnoughSpaceException to dav exception
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
9f5535d01b
commit
7c4b601793
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue