diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-12 20:09:57 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-12 20:09:57 +0100 |
commit | 84420035dfa1176a156b837e55bc3ac4ca946840 (patch) | |
tree | 0e89689d5b5ebfbab1f9f76c712f51608764cb32 /lib | |
parent | b8b64d6ffc0645f5806d7120e337c2652e49c2e7 (diff) | |
download | nextcloud-server-84420035dfa1176a156b837e55bc3ac4ca946840.tar.gz nextcloud-server-84420035dfa1176a156b837e55bc3ac4ca946840.zip |
throwing InsufficientStorage in case the quota is reached
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connector/sabre/quotaplugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |