lib/rdstation/error_handler.rb in rdstation-ruby-client-2.3.0 vs lib/rdstation/error_handler.rb in rdstation-ruby-client-2.3.1
- old
+ new
@@ -35,9 +35,11 @@
when 500 then RDStation::Error::InternalServerError
when 501 then RDStation::Error::NotImplemented
when 502 then RDStation::Error::BadGateway
when 503 then RDStation::Error::ServiceUnavailable
when 500..599 then RDStation::Error::ServerError
+ else
+ RDStation::Error::UnknownError
end
end
def array_of_errors
error_formatter.to_array.map do |error|