mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Add exception trace to log for #1648
This commit is contained in:
parent
2f90d95c4c
commit
3fb700f163
1 changed files with 2 additions and 2 deletions
|
|
@ -73,9 +73,9 @@ abstract class Crypt
|
|||
if (\is_string($result)) {
|
||||
return static::jsonDecode($result);
|
||||
}
|
||||
throw new \Exception('invalid $data or $key');
|
||||
throw new \RuntimeException('invalid $data or $key');
|
||||
} catch (\Throwable $e) {
|
||||
Log::error('Crypt', "{$fn}(): {$e->getMessage()}");
|
||||
Log::error('Crypt', "{$fn}(): {$e->getMessage()}\n{$e->getTraceAsString()}");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue