Skip to content

Commit 940558a

Browse files
authored
fix(cli): exit code mismatch in clikt (#824)
1 parent 58ead03 commit 940558a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cli/src/main/kotlin/com/malinskiy/marathon/cli/ApplicationView.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private fun execute(cliConfiguration: CliConfiguration) {
8585
}
8686

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

0 commit comments

Comments
 (0)