Skip to content

Commit cb524ab

Browse files
author
Adrian Nguyen
committed
[Notifier] Add MessageMedia Bridge
fixed tests for low-deps
1 parent fec015b commit cb524ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\Notifier\Transport\AbstractTransport;
2020
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2121
use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;
22+
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
2223
use 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

0 commit comments

Comments
 (0)