Skip to content

Commit

Permalink
Fix error when upgrading gradle wrapper due to undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcodez committed Mar 25, 2020
1 parent e778dcb commit 4dfe84a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 4dfe84a

Please sign in to comment.