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.
2 parents ade739c + 492c624 commit 0754f1cCopy full SHA for 0754f1c
src/Exceptions/CouldNotSendNotification.php
@@ -10,6 +10,10 @@ class CouldNotSendNotification extends \Exception
10
*/
11
public static function serviceRespondsNotSuccessful($response)
12
{
13
+ if (isset($response->error)){
14
+ return new static("Couldn't post notification. Response: ".$response->error);
15
+ }
16
+
17
$responseBody = print_r($response->errors[0]->message, true);
18
19
return new static("Couldn't post notification. Response: ".$responseBody);
0 commit comments