There was an error while loading. Please reload this page.
2 parents aef71c7 + 86c5c1d commit a3389ecCopy full SHA for a3389ec
gulpfile.js
@@ -97,6 +97,10 @@ const lintOptions = {
97
98
function getBuildVars() {
99
const stageString = process.env.CLARIFAI_DEPLOY || gutil.env.stage || 'dev';
100
+ if (!buildVars.hasOwnProperty(stageString)) {
101
+ throw 'There are no defined build variables for stage `' + stageString + '`';
102
+ }
103
+
104
return buildVars[stageString];
105
}
106
0 commit comments