We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca4be3 commit b743a5cCopy full SHA for b743a5c
lib/bigquery.js
@@ -36,7 +36,7 @@
36
*/
37
startJob: function(jobConfig, options) {
38
if(!jobConfig || !jobConfig.sql) {
39
- throw 'Please provide the sql to run the job.';
+ throw new Error('Please provide the sql to run the job.');
40
}
41
var data = {
42
jobConfig: jobConfig,
@@ -72,7 +72,7 @@
72
73
AV.BigQuery.JobQuery = function(id, className) {
74
if(!id) {
75
- throw 'Please provide the job id.';
+ throw new Error('Please provide the job id.');
76
77
this.id = id;
78
this.className = className;
0 commit comments