File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ function queryShakespeare (projectId) {
6565 . then ( ( results ) => {
6666 const rows = results [ 0 ] ;
6767 printResult ( rows ) ;
68+ } )
69+ . catch ( ( err ) => {
70+ console . error ( 'ERROR:' , err ) ;
6871 } ) ;
6972}
7073// [END bigquery_simple_app_query]
@@ -97,6 +100,9 @@ function syncQuery (sqlQuery, projectId) {
97100 const rows = results [ 0 ] ;
98101 console . log ( 'Rows:' ) ;
99102 rows . forEach ( ( row ) => console . log ( row ) ) ;
103+ } )
104+ . catch ( ( err ) => {
105+ console . error ( 'ERROR:' , err ) ;
100106 } ) ;
101107 // [END bigquery_sync_query]
102108}
@@ -138,6 +144,9 @@ function asyncQuery (sqlQuery, projectId) {
138144 const rows = results [ 0 ] ;
139145 console . log ( 'Rows:' ) ;
140146 rows . forEach ( ( row ) => console . log ( row ) ) ;
147+ } )
148+ . catch ( ( err ) => {
149+ console . error ( 'ERROR:' , err ) ;
141150 } ) ;
142151 // [END bigquery_async_query]
143152}
You can’t perform that action at this time.
0 commit comments