We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bacfab commit 6cc34dcCopy full SHA for 6cc34dc
src/Exceptions/CouldNotSendNotification.php
@@ -17,10 +17,10 @@ public static function telegramRespondedWithAnError(ClientException $exception)
17
{
18
$statusCode = $exception->getResponse()->getStatusCode();
19
20
- $description = '';
+ $description = 'no description given';
21
22
if ($result = json_decode($exception->getResponse()->getBody())) {
23
- $description = $result->description ?: '';
+ $description = $result->description ?: $description;
24
}
25
26
return new static("Telegram responded with an error `{$statusCode} - {$description}`");
0 commit comments