Skip to content

Commit

Permalink
fix(cli): exit code mismatch in clikt (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy authored Aug 2, 2023
1 parent 58ead03 commit 940558a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private fun execute(cliConfiguration: CliConfiguration) {
}

when {
success -> throw PrintMessage(message = "Marathon execution finished", statusCode = 1, printError = false)
success -> throw PrintMessage(message = "Marathon execution finished", statusCode = 0, printError = false)
configuration.ignoreFailures -> throw PrintMessage(message = "Marathon execution finished with failures (Failures suppressed because ignoreFailures is `true`)", statusCode = 1, printError = true)
else -> throw PrintMessage(message = "Marathon execution failed", statusCode = 1, printError = true)
}
Expand Down

0 comments on commit 940558a

Please sign in to comment.