Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 571eda6

Browse files
committed
Apply code suggestion.
1 parent 2c7b953 commit 571eda6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ protected function doSend(MessageInterface $message): SentMessage
8181
try {
8282
$statusCode = $response->getStatusCode();
8383
} catch (TransportExceptionInterface $e) {
84-
throw new TransportException('Could not reach the remote Discord server.', $response, 0, $e);
84+
throw new TransportException('Could not reach the remote Chatwork server.', $response, 0, $e);
8585
}
8686

8787
if (200 !== $statusCode) {
8888
$originalContent = $message->getSubject();
8989
$result = $response->toArray(false);
9090
$errors = $result['errors'];
91-
throw new TransportException(sprintf('Unable to post the Chatwork message: "%s" (%d: "%s").', $originalContent, $statusCode, implode(', ', $errors)), $response);
91+
throw new TransportException(sprintf('Unable to post the Chatwork message: "%s" (%d: %s).', $originalContent, $statusCode, implode(', ', $errors)), $response);
9292
}
9393

9494
return new SentMessage($message, (string) $this);

src/Symfony/Component/Notifier/Bridge/Chatwork/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Chatwork Notifier
2-
===============
2+
=================
33

44
Provides [Chatwork](https://go.chatwork.com/) integration for Symfony Notifier.
55

0 commit comments

Comments
 (0)