lib/iex/cloud/response.rb in iex-ruby-client-1.1.2 vs lib/iex/cloud/response.rb in iex-ruby-client-1.2.0
- old
+ new
@@ -3,10 +3,10 @@
module Response
class RaiseError < ::Faraday::Response::RaiseError
def on_complete(env)
case env[:status]
when 404
- raise Faraday::Error::ResourceNotFound, response_values(env)
+ raise Faraday::ResourceNotFound, response_values(env)
when 403
raise IEX::Errors::PermissionDeniedError, response_values(env)
when ClientErrorStatuses
raise IEX::Errors::ClientError, response_values(env)
else