lib/panoptes/endpoints/base_endpoint.rb in panoptes-client-0.2.9 vs lib/panoptes/endpoints/base_endpoint.rb in panoptes-client-0.2.10

- old
+ new

@@ -62,12 +62,12 @@ end def handle_response(response) case response.status when 404 - raise ResourceNotFound, status: response.status, body: response.body + raise Panoptes::Client::ResourceNotFound, status: response.status, body: response.body when 400..600 - raise ServerError.new, response.body + raise Panoptes::Client::ServerError.new, response.body else response.body end end