lib/dor/services/client/collections.rb in dor-services-client-4.12.0 vs lib/dor/services/client/collections.rb in dor-services-client-4.13.0

- old
+ new

@@ -21,10 +21,10 @@ req.url "#{query_path}/collections" end return response_to_models(resp) if resp.success? - raise UnexpectedResponse, ResponseErrorFormatter.format(response: resp) + raise_exception_based_on_response!(resp, object_identifier) end private def response_to_models(resp)