diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php index 1351bd7e474bb..27dcd6155292f 100644 --- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php +++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php @@ -220,10 +220,10 @@ public function checkQuota(string $path, $length = null, $isDir = false) { $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"); } }