Merge pull request #11631 from owncloud/fix-undefine-encryption-exception

fixing usage of EncryptionException
This commit is contained in:
Björn Schießle 2014-10-17 14:18:59 +02:00
commit 2e875bc6b6
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}