summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-12-12 20:09:57 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2012-12-12 20:09:57 +0100
commit84420035dfa1176a156b837e55bc3ac4ca946840 (patch)
tree0e89689d5b5ebfbab1f9f76c712f51608764cb32 /lib
parentb8b64d6ffc0645f5806d7120e337c2652e49c2e7 (diff)
downloadnextcloud-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.php2
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;