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 22:49:27 +0100 |
commit | c50bbc8c0447bea0aa5c20d466bc12aaa695fe18 (patch) | |
tree | 358bab5881e4f3f8015750db1e9aa915243e4808 /lib | |
parent | 35a44a6b1c5e62b870c87a7f93492b9badc6b069 (diff) | |
download | nextcloud-server-c50bbc8c0447bea0aa5c20d466bc12aaa695fe18.tar.gz nextcloud-server-c50bbc8c0447bea0aa5c20d466bc12aaa695fe18.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 5b8ef941710..e1be5fd605a 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; |