diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-12 14:02:45 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-12 14:02:45 -0800 |
commit | 4018ba065401d8f02a1d5cee9b82ab3397795b7f (patch) | |
tree | 0e89689d5b5ebfbab1f9f76c712f51608764cb32 | |
parent | b8b64d6ffc0645f5806d7120e337c2652e49c2e7 (diff) | |
parent | 84420035dfa1176a156b837e55bc3ac4ca946840 (diff) | |
download | nextcloud-server-4018ba065401d8f02a1d5cee9b82ab3397795b7f.tar.gz nextcloud-server-4018ba065401d8f02a1d5cee9b82ab3397795b7f.zip |
Merge pull request #847 from owncloud/webdav-quota-fix-exception
throwing InsufficientStorage in case the quota is reached
-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; |