From: Thomas Mueller Date: Wed, 12 Dec 2012 19:09:57 +0000 (+0100) Subject: throwing InsufficientStorage in case the quota is reached X-Git-Tag: v5.0.0alpha1~340^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84420035dfa1176a156b837e55bc3ac4ca946840;p=nextcloud-server.git throwing InsufficientStorage in case the quota is reached --- diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php index a56a65ad863..fbbb4a3cf6f 100644 --- a/lib/connector/sabre/quotaplugin.php +++ b/lib/connector/sabre/quotaplugin.php @@ -51,7 +51,7 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin { } list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri); if ($length > OC_Filesystem::free_space($parentUri)) { - throw new Sabre_DAV_Exception('Quota exceeded. File is too big.'); + throw new Sabre_DAV_Exception_InsufficientStorage(); } } return true;