lib/mailstro/middleware/response/raise_error.rb in mailstro-0.0.10 vs lib/mailstro/middleware/response/raise_error.rb in mailstro-0.1.0

- old
+ new

@@ -6,9 +6,11 @@ case env[:status] when 401 raise Error::AuthorisationError.new("api_key not authorised", env) when 422 raise Error::ValidationError.new(env[:body][:errors]) + when 500 + raise Error::MailstroError.new(env[:body]) else super end end end