Skip to content

Commit

Permalink
fix ignoreFailure exit code missmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Lapenko committed Aug 18, 2023
1 parent b622e54 commit 2dab0f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private fun execute(cliConfiguration: CliConfiguration) {

when {
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)
configuration.ignoreFailures -> throw PrintMessage(message = "Marathon execution finished with failures (Failures suppressed because ignoreFailures is `true`)", statusCode = 0, printError = true)
else -> throw PrintMessage(message = "Marathon execution failed", statusCode = 1, printError = true)
}
} finally {
Expand Down

0 comments on commit 2dab0f7

Please sign in to comment.