Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c7f3454

Browse filesBrowse files
committed
[Notifier] Add MessageMedia Bridge
fixed tests for low-deps
1 parent bf8234b commit c7f3454
Copy full SHA for c7f3454

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.