diff --git a/apps/encryption/lib/crypto/encryption.php b/apps/encryption/lib/crypto/encryption.php index 9094a84d4c..fe1d955524 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 = '';