lib/google/cloud/compute/v1/image_family_views/rest/client.rb in google-cloud-compute-v1-1.7.0 vs lib/google/cloud/compute/v1/image_family_views/rest/client.rb in google-cloud-compute-v1-1.7.1

- old
+ new

@@ -189,11 +189,14 @@ @image_family_views_stub.get request, options do |result, response| yield result, response if block_given? return result end rescue ::Faraday::Error => e - gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e - raise ::Google::Cloud::Error.from_error(gapic_error) + begin + raise ::Gapic::Rest::Error.wrap_faraday_error e + rescue ::Gapic::Rest::Error => gapic_error + raise ::Google::Cloud::Error.from_error gapic_error + end end ## # Configuration class for the ImageFamilyViews REST API. #