Add exception trace to log for #1648

This commit is contained in:
the-djmaze 2024-08-06 16:42:38 +02:00
parent 2f90d95c4c
commit 3fb700f163

View file

@ -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 {