Skip to content

Commit

Permalink
fastfix
Browse files Browse the repository at this point in the history
  • Loading branch information
shershennm committed Jan 4, 2019
1 parent 76ffc9a commit 60f056e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "yii2-extension",
"keywords": ["yii2", "extension", "sendgrid", "shershennm"],
"license": "MIT",
"version": "3.0.1",
"version": "3.0.2",
"authors": [
{
"name": "shershennm",
Expand Down
2 changes: 1 addition & 1 deletion src/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function sendMessage($message)
{
$response = $this->sendGridMailer->send($message->sendGridMessage);

if ($response->statusCode() !== 200) {
if ($response->statusCode() >= 400) {
throw new SendgridException(sprintf(
'Sendgrid returned %d with "%s" error',
$response->statusCode(),
Expand Down

0 comments on commit 60f056e

Please sign in to comment.