add hint to exception
This commit is contained in:
parent
2fb1b0864a
commit
d743d6d356
|
@ -279,12 +279,11 @@ class Encryption implements IEncryptionModule {
|
||||||
*/
|
*/
|
||||||
public function decrypt($data) {
|
public function decrypt($data) {
|
||||||
if (empty($this->fileKey)) {
|
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.');
|
$msg = '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,
|
$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.');
|
||||||
probably this is a shared file.
|
$this->logger->error($msg);
|
||||||
Please ask the file owner to reshare the file with you.');
|
|
||||||
|
|
||||||
throw new DecryptionFailedException($msg);
|
throw new DecryptionFailedException($msg, $hint);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = '';
|
$result = '';
|
||||||
|
|
Loading…
Reference in New Issue