File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Symfony/Component/Notifier/Bridge/MessageMedia Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1919use Symfony \Component \Notifier \Transport \AbstractTransport ;
2020use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
2121use Symfony \Contracts \HttpClient \Exception \DecodingExceptionInterface ;
22+ use Symfony \Contracts \HttpClient \Exception \TransportExceptionInterface ;
2223use Symfony \Contracts \HttpClient \HttpClientInterface ;
2324
2425/**
@@ -91,7 +92,7 @@ protected function doSend(MessageInterface $message): SentMessage
9192 $ error = $ response ->toArray (false );
9293
9394 $ errorMessage = $ error ['details ' ][0 ] ?? ($ error ['message ' ] ?? 'Unknown reason ' );
94- } catch (DecodingExceptionInterface $ e ) {
95+ } catch (DecodingExceptionInterface | TransportExceptionInterface $ e ) {
9596 $ errorMessage = 'Unknown reason ' ;
9697 }
9798
You can’t perform that action at this time.
0 commit comments