From db6a00a998fbb9aaa79f7218f829fa15440784d3 Mon Sep 17 00:00:00 2001 From: Ryan Matsumoto Date: Wed, 30 Nov 2016 12:52:57 -0800 Subject: [PATCH] Adjusted error handling based on Googler feedback --- bigquery/cloud-client/load_data_from_gcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigquery/cloud-client/load_data_from_gcs.py b/bigquery/cloud-client/load_data_from_gcs.py index 4aa435fad00..7c576e20ad6 100644 --- a/bigquery/cloud-client/load_data_from_gcs.py +++ b/bigquery/cloud-client/load_data_from_gcs.py @@ -54,7 +54,7 @@ def wait_for_job(job): job.reload() if job.state == 'DONE': if job.error_result: - raise RuntimeError(job.error_result) + raise RuntimeError(job.errors) return time.sleep(1)