diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-17 11:46:22 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-17 11:46:22 +0200 |
commit | d37eee09a580cffdcc54b8f71b345622e221d528 (patch) | |
tree | 7cc9d1ea2962cffa0f2f0ce2396dc4c5662e1465 | |
parent | 263dc70bfdf28446b0f7e9162de205caaf55d257 (diff) | |
download | nextcloud-server-d37eee09a580cffdcc54b8f71b345622e221d528.tar.gz nextcloud-server-d37eee09a580cffdcc54b8f71b345622e221d528.zip |
fixing usage of EncryptionException
-rwxr-xr-x | apps/files_encryption/lib/crypt.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_encryption/lib/crypt.php b/apps/files_encryption/lib/crypt.php index c4fc29db03a..59b191097af 100755 --- a/apps/files_encryption/lib/crypt.php +++ b/apps/files_encryption/lib/crypt.php @@ -24,6 +24,7 @@ */
namespace OCA\Encryption;
+use OCA\Encryption\Exceptions\EncryptionException;
/**
* Class for common cryptography functionality
@@ -289,9 +290,9 @@ class Crypt { $padded = self::addPadding($catfile);
return $padded;
- } catch (OCA\Encryption\Exceptions\EncryptionException $e) {
- $message = 'Could not encrypt file content (code: ' . $e->getCode . '): ';
- \OCP\Util::writeLog('files_encryption', $message . $e->getMessage, \OCP\Util::ERROR);
+ } catch (EncryptionException $e) {
+ $message = 'Could not encrypt file content (code: ' . $e->getCode() . '): ';
+ \OCP\Util::writeLog('files_encryption', $message . $e->getMessage(), \OCP\Util::ERROR);
return false;
}
|