fixing usage of EncryptionException
This commit is contained in:
parent
263dc70bfd
commit
d37eee09a5
|
@ -24,6 +24,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OCA\Encryption;
|
namespace OCA\Encryption;
|
||||||
|
use OCA\Encryption\Exceptions\EncryptionException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for common cryptography functionality
|
* Class for common cryptography functionality
|
||||||
|
@ -289,9 +290,9 @@ class Crypt {
|
||||||
$padded = self::addPadding($catfile);
|
$padded = self::addPadding($catfile);
|
||||||
|
|
||||||
return $padded;
|
return $padded;
|
||||||
} catch (OCA\Encryption\Exceptions\EncryptionException $e) {
|
} catch (EncryptionException $e) {
|
||||||
$message = 'Could not encrypt file content (code: ' . $e->getCode . '): ';
|
$message = 'Could not encrypt file content (code: ' . $e->getCode() . '): ';
|
||||||
\OCP\Util::writeLog('files_encryption', $message . $e->getMessage, \OCP\Util::ERROR);
|
\OCP\Util::writeLog('files_encryption', $message . $e->getMessage(), \OCP\Util::ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue