From 6ec05e8dcff26e35592a0372ebb22fe3b43260e5 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Tue, 28 Apr 2020 13:22:15 +0100 Subject: [PATCH] Fix unhandled promise rejection when using `balena deploy` Change-type: patch --- lib/utils/compose.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/utils/compose.js b/lib/utils/compose.js index 80b69166..7cf23134 100644 --- a/lib/utils/compose.js +++ b/lib/utils/compose.js @@ -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