lib/http_mailer/client.rb in http_mailer-0.0.5 vs lib/http_mailer/client.rb in http_mailer-1.0.0

- old
+ new

@@ -20,9 +20,10 @@ response = service.send_message(from, to, subject, body, to_name, from_name) break if response.code == 200 end end + raise EmailDeliveryError if response.code != 200 return response end end end \ No newline at end of file