summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/file.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-30 22:36:48 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:28 +0200
commitdbdd754c3fc37dc3100a9741f956d913e6d64576 (patch)
tree9aa55408b331d219a72cd53e2947ef8f06db85ce /lib/private/connector/sabre/file.php
parent00338f9dca97fd7b48d96201fd607cf460c385ff (diff)
downloadnextcloud-server-dbdd754c3fc37dc3100a9741f956d913e6d64576.tar.gz
nextcloud-server-dbdd754c3fc37dc3100a9741f956d913e6d64576.zip
Further cleanup of files_encryption
Diffstat (limited to 'lib/private/connector/sabre/file.php')
-rw-r--r--lib/private/connector/sabre/file.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index 5b8cb17a81c..58579f42dfc 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -35,6 +35,8 @@
namespace OC\Connector\Sabre;
+use OC\Encryption\Exceptions\GenericEncryptionException;
+
class File extends \OC\Connector\Sabre\Node implements \Sabre\DAV\IFile {
/**
@@ -125,7 +127,7 @@ class File extends \OC\Connector\Sabre\Node implements \Sabre\DAV\IFile {
} catch (\OCP\Files\LockNotAcquiredException $e) {
// the file is currently being written to by another process
throw new \OC\Connector\Sabre\Exception\FileLocked($e->getMessage(), $e->getCode(), $e);
- } catch (\OCA\Files_Encryption\Exception\EncryptionException $e) {
+ } catch (GenericEncryptionException $e) {
throw new \Sabre\DAV\Exception\Forbidden($e->getMessage());
} catch (\OCP\Files\StorageNotAvailableException $e) {
throw new \Sabre\DAV\Exception\ServiceUnavailable("Failed to write file contents: ".$e->getMessage());