Fix unhandled promise rejection when using balena deploy

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-04-28 13:22:15 +01:00
parent 6602845202
commit 6ec05e8dcf

View File

@ -581,9 +581,7 @@ const pushAndUpdateServiceImages = function(docker, token, images, afterEach) {
Promise.join(
localImage.inspect().get('Size'),
retry(
() => {
progress.push(localImage.name, reporters[index], opts);
},
() => progress.push(localImage.name, reporters[index], opts),
3, // `times` - retry 3 times
localImage.name, // `label` included in retry log messages
2000, // `delayMs` - wait 2 seconds before the 1st retry