Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
eek, fucked up error
  • Loading branch information
Elad Meidar committed Mar 29, 2011
1 parent 5904aa3 commit 9f51e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sendgrid_toolkit/mail.rb
Expand Up @@ -4,7 +4,7 @@ def send_mail(options = {})
options.assert_valid_keys :to, :api_headers, :subject, :from, :text, :html, :reply_to, :from_name, :to_name, :date, :headers
options["X-SMTPAPI"] = options[:api_headers]
response = api_post('mail', 'send', options)
raise(SendEmailError, "SendMail API refused to send email: #{response["errors"].inspect}") if response["message"] = "error"
raise(SendEmailError, "SendMail API refused to send email: #{response["errors"].inspect}") if response["message"] == "error"
end
end
end

0 comments on commit 9f51e88

Please sign in to comment.