Skip to content

Commit 01e8fbe

Browse files
committed
continue on submo error
1 parent e253625 commit 01e8fbe

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/boostDownloader.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ BoostDownloader.prototype._download = function () {
9999
self.log.verbose("BOOST", "Getting Boost releases.");
100100
var command = "git ls-remote --tags https://github.com/boostorg/boost.git";
101101
return new Bluebird(function (resolve, reject) {
102-
exec(command, function(err, stdout, stderr) {
102+
exec(command, function (err, stdout, stderr) {
103103
if (err) {
104104
reject(err);
105105
return;
@@ -160,7 +160,7 @@ BoostDownloader.prototype._downloadVersion = function (version) {
160160
extracter.once("error", function (err) { reject(err); });
161161
request
162162
.get(downloadUrl)
163-
.on('error', function (err) { reject(err); })
163+
.on("error", function (err) { reject(err); })
164164
.pipe(gunzip)
165165
.pipe(extracter);
166166
});
@@ -203,6 +203,10 @@ BoostDownloader.prototype._downloadSubmodules = function (version, internalPath)
203203
else {
204204
self.log.verbose("BOOST", ((done / libTasks.length) * 100).toFixed(1) + "% - submodule " + dirName + "/" + lib + " exists.");
205205
}
206+
},
207+
function (e) {
208+
self.log.info("BOOST", ((done / libTasks.length) * 100).toFixed(1) + "% - submodule " + dirName + "/" + lib + " download error.");
209+
self.log.silly("BOOST", "Error: " + e.stack);
206210
}));
207211
}
208212
});
@@ -244,7 +248,7 @@ BoostDownloader.prototype._downloadSubmo = function (version, internalPath, name
244248
extracter.once("error", function (err) { reject(err); });
245249
request
246250
.get(downloadUrl)
247-
.on('error', function (err) { reject(err); })
251+
.on("error", function (err) { reject(err); })
248252
.pipe(gunzip)
249253
.pipe(extracter);
250254
});

0 commit comments

Comments
 (0)