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 19
19
use Symfony \Component \Notifier \Transport \AbstractTransport ;
20
20
use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
21
21
use Symfony \Contracts \HttpClient \Exception \DecodingExceptionInterface ;
22
+ use Symfony \Contracts \HttpClient \Exception \TransportExceptionInterface ;
22
23
use Symfony \Contracts \HttpClient \HttpClientInterface ;
23
24
24
25
/**
@@ -91,7 +92,7 @@ protected function doSend(MessageInterface $message): SentMessage
91
92
$ error = $ response ->toArray (false );
92
93
93
94
$ errorMessage = $ error ['details ' ][0 ] ?? ($ error ['message ' ] ?? 'Unknown reason ' );
94
- } catch (DecodingExceptionInterface $ e ) {
95
+ } catch (DecodingExceptionInterface | TransportExceptionInterface $ e ) {
95
96
$ errorMessage = 'Unknown reason ' ;
96
97
}
97
98
You can’t perform that action at this time.
0 commit comments