Skip to content

Commit d314338

Browse files
committed
Temporarily print query schema update exceptions so we can see why it's failing.
1 parent d2d501a commit d314338

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bigquery_etl/cli/query.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ def _update_query_schema(
23092309
credentials=credentials,
23102310
id_token=id_token,
23112311
)
2312-
except Exception:
2312+
except Exception as e:
23132313
if not existing_schema_path.exists():
23142314
click.echo(
23152315
click.style(
@@ -2319,6 +2319,8 @@ def _update_query_schema(
23192319
),
23202320
err=True,
23212321
)
2322+
# Temporarily print the exception so we can see why it's failing.
2323+
click.echo(str(e), err=True)
23222324
return
23232325

23242326
# update bigquery metadata

0 commit comments

Comments
 (0)