Skip to content

Commit 0944748

Browse files
committed
Fix logging in create_table and delete_table
This fixes the logging when an error occurs to make debugging easier.
1 parent e8a7796 commit 0944748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigquery/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def create_table(self, dataset, table, schema):
330330
except HttpError as e:
331331
logging.error(('Cannot create table {0}.{1}\n'
332332
'Http Error: {2}').format(dataset, table,
333-
e.message))
333+
e.content))
334334
if self.swallow_results:
335335
return False
336336
else:
@@ -362,7 +362,7 @@ def delete_table(self, dataset, table):
362362
except HttpError as e:
363363
logging.error(('Cannot delete table {0}.{1}\n'
364364
'Http Error: {2}').format(dataset, table,
365-
e.message))
365+
e.content))
366366
if self.swallow_results:
367367
return False
368368
else:

0 commit comments

Comments
 (0)