From efb8f54fa145af7d16697f01b857dab8486705dd Mon Sep 17 00:00:00 2001 From: RonLek Date: Fri, 29 Jun 2018 21:52:10 +0530 Subject: [PATCH] Error Handling for Downloaded Files --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index c7e66a204..919201ee2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -449,6 +449,8 @@ gulp.task('buildnumber', function (done) { if (!err) { // Build number is the number of commits since base version buildNumber = stdout ? stdout.match(/\n/g).length : 0; + } else { + console.log('This is not a Git repository; using default build number.'); } console.log('Extension build number: ' + buildNumber);