]> source.dussan.org Git - nextcloud-server.git/commitdiff
throwing InsufficientStorage in case the quota is reached
authorThomas Mueller <thomas.mueller@tmit.eu>
Wed, 12 Dec 2012 19:09:57 +0000 (20:09 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Wed, 12 Dec 2012 19:09:57 +0000 (20:09 +0100)
lib/connector/sabre/quotaplugin.php

index a56a65ad863f504e9a66cd1aea4bbade16345cd7..fbbb4a3cf6f302f0f7c4ea805fc7e1bb3b91859d 100644 (file)
@@ -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;