Improved InvalidToken handling for #1653

This commit is contained in:
the-djmaze 2024-07-07 15:48:26 +02:00
parent 7f64dee54b
commit 288ff23f2b
3 changed files with 18 additions and 7 deletions

View file

@ -149,9 +149,9 @@ class ServiceActions
}
catch (\Throwable $oException)
{
\SnappyMail\Log::warning('SERVICE', "{$oException->getMessage()}\r\n{$oException->getTraceAsString()}");
\SnappyMail\Log::warning('SERVICE', "{$oException}");
if ($e = $oException->getPrevious()) {
\SnappyMail\Log::warning('SERVICE', "- {$e->getMessage()} @ {$e->getFile()}#{$e->getLine()}");
\SnappyMail\Log::warning('SERVICE', "- {$e}");
}
$aResponse = $this->oActions->ExceptionResponse($oException);