From 3fb700f163a686f01fa1cb47062f57a5760d359c Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 6 Aug 2024 16:42:38 +0200 Subject: [PATCH] Add exception trace to log for #1648 --- snappymail/v/0.0.0/app/libraries/snappymail/crypt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php b/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php index 4fd9b7b65..4c7706498 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/crypt.php @@ -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 {