From 009b1ada2f3dde54c73cdd0c9c946be1d096098f Mon Sep 17 00:00:00 2001 From: Nadia Barbosa Date: Fri, 22 Feb 2019 14:08:17 -0800 Subject: Return things from Promise.all() --- scripts/publish_binary_size.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/publish_binary_size.js b/scripts/publish_binary_size.js index 98a57cfcc4..f58d717c4b 100755 --- a/scripts/publish_binary_size.js +++ b/scripts/publish_binary_size.js @@ -162,9 +162,10 @@ github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATIO }).promise(); return Promise.all([firstPromise, secondPromise]).then(data => { - console.log("Successfully uploaded all binary size metrics to S3"); + return console.log("Successfully uploaded all binary size metrics to S3"); }).catch(err => { console.log("Error uploading binary size metrics to S3 " + err.message); + return err; }); }); }); -- cgit v1.2.1