Skip to content

Commit

Permalink
[TASK] Add code to exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Woeler committed Nov 25, 2018
1 parent 694be81 commit 7ae57cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webhook/DiscordWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function send(): int
curl_close($ch);

if ($code < 200 || $code >= 400) {
throw new DiscordInvalidResponseException('Discord Webhook returned invalid response: '.$code.'.');
throw new DiscordInvalidResponseException('Discord Webhook returned invalid response: '.$code.'.', $code);
}

return $code;
Expand Down

0 comments on commit 7ae57cf

Please sign in to comment.