From 4dfe84aa37bcdf24c04a04fd827bdee5aa0c9501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Wed, 25 Mar 2020 15:51:50 +0100 Subject: [PATCH] Fix error when upgrading gradle wrapper due to undefined var --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index b95a0fc..d9a00d5 100755 --- a/index.js +++ b/index.js @@ -148,8 +148,7 @@ async function executeCommandAndWaitForExitCode(command, args) { let upgradeGradleWrapperExitCode = await executeCommandAndWaitForExitCode(gradleCommand, upgradeArgs) if (upgradeGradleWrapperExitCode !== 0) { - console.log(`Error upgrading gradle wrapper (StatusCode=${upgradeGradleWrapper.status}).`.bgRed) - console.log(upgradeGradleWrapper.stderr.toString().red) + console.log(`Error upgrading gradle wrapper (StatusCode=${upgradeGradleWrapperExitCode}).`.bgRed) process.exit() } }