chore(quota): hide available space from error

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
Benjamin Gaussorgues 2026-03-17 11:46:30 +01:00
parent fdca3b464d
commit e0583ebc12
No known key found for this signature in database

View file

@ -220,10 +220,10 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin {
$freeSpace = $this->getFreeSpace($path);
if ($freeSpace >= 0 && $length > $freeSpace) {
if ($isDir) {
throw new InsufficientStorage("Insufficient space in $path. $freeSpace available. Cannot create directory");
throw new InsufficientStorage("Insufficient space in $path. Cannot create directory");
}
throw new InsufficientStorage("Insufficient space in $path, $length required, $freeSpace available");
throw new InsufficientStorage("Insufficient space in $path");
}
}