lib/google/cloud/bigquery/service.rb in google-cloud-bigquery-1.46.0 vs lib/google/cloud/bigquery/service.rb in google-cloud-bigquery-1.46.1
- old
+ new
@@ -80,9 +80,15 @@
service.request_options.query["prettyPrint"] = false
service.request_options.quota_project = @quota_project if @quota_project
service.authorization = @credentials.client
service.universe_domain = @universe_domain
service.root_url = host if host
+ begin
+ service.verify_universe_domain!
+ rescue Google::Apis::UniverseDomainError => e
+ # TODO: Create a Google::Cloud::Error subclass for this.
+ raise Google::Cloud::Error, e.message
+ end
service
end
end
attr_accessor :mocked_service