Skip to content

Commit

Permalink
fix ignoreFailure exit code missmatch (#831)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitrii Lapenko <[email protected]>
  • Loading branch information
dalapenko and Dmitrii Lapenko authored Aug 18, 2023
1 parent b622e54 commit 586eddb
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 586eddb

Please sign in to comment.