Skip to content

Commit b743a5c

Browse files
committed
Fixed by review
1 parent 1ca4be3 commit b743a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bigquery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
startJob: function(jobConfig, options) {
3838
if(!jobConfig || !jobConfig.sql) {
39-
throw 'Please provide the sql to run the job.';
39+
throw new Error('Please provide the sql to run the job.');
4040
}
4141
var data = {
4242
jobConfig: jobConfig,
@@ -72,7 +72,7 @@
7272
*/
7373
AV.BigQuery.JobQuery = function(id, className) {
7474
if(!id) {
75-
throw 'Please provide the job id.';
75+
throw new Error('Please provide the job id.');
7676
}
7777
this.id = id;
7878
this.className = className;

0 commit comments

Comments
 (0)