diff --git a/cli/src/main/kotlin/com/malinskiy/marathon/cli/ApplicationView.kt b/cli/src/main/kotlin/com/malinskiy/marathon/cli/ApplicationView.kt index 4018447e3..eb5687f0d 100644 --- a/cli/src/main/kotlin/com/malinskiy/marathon/cli/ApplicationView.kt +++ b/cli/src/main/kotlin/com/malinskiy/marathon/cli/ApplicationView.kt @@ -84,10 +84,9 @@ private fun execute(cliConfiguration: CliConfiguration) { throw PrintMessage(message = "Marathon execution crashed", error = true) } - val shouldReportFailure = !configuration.ignoreFailures when { success -> throw PrintMessage(message = "Marathon execution finished", error = false) - shouldReportFailure -> throw PrintMessage(message = "Marathon execution finished with failures (Failures suppressed because ignoreFailures is `true`)", error = false) + configuration.ignoreFailures -> throw PrintMessage(message = "Marathon execution finished with failures (Failures suppressed because ignoreFailures is `true`)", error = false) else -> throw PrintMessage(message = "Marathon execution failed", error = true) } } finally {