diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-08 14:43:45 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-08 21:16:23 +0200 |
commit | d743d6d35642ec18de996d07ba04b198ae50bcfe (patch) | |
tree | 61cc99198193f2e5c3bcd022f2f7131685eb2662 /apps/encryption | |
parent | 2fb1b0864adea92102d8c91d92681dc0ef0bbafc (diff) | |
download | nextcloud-server-d743d6d35642ec18de996d07ba04b198ae50bcfe.tar.gz nextcloud-server-d743d6d35642ec18de996d07ba04b198ae50bcfe.zip |
add hint to exception
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/lib/crypto/encryption.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/encryption/lib/crypto/encryption.php b/apps/encryption/lib/crypto/encryption.php index 9094a84d4c8..fe1d955524a 100644 --- a/apps/encryption/lib/crypto/encryption.php +++ b/apps/encryption/lib/crypto/encryption.php @@ -279,12 +279,11 @@ class Encryption implements IEncryptionModule { */ public function decrypt($data) { if (empty($this->fileKey)) { - $msg = $this->l->t('Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.'); - $this->logger->error('Can not decrypt this file, - probably this is a shared file. - Please ask the file owner to reshare the file with you.'); + $msg = 'Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.'; + $hint = $this->l->t('Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.'); + $this->logger->error($msg); - throw new DecryptionFailedException($msg); + throw new DecryptionFailedException($msg, $hint); } $result = ''; |