Skip to content

Commit 3556352

Browse files
committed
Fix exit codes
- Fix not to error so that other mappers can be used. - Relates #431
1 parent fa86939 commit 3556352

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-shell-autoconfigure/src/main/java/org/springframework/shell/boot/ExitCodeAutoConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public int getExitCode(Throwable exception) {
5454
if (exception.getCause() instanceof CommandExecution.CommandParserExceptionsException) {
5555
return 2;
5656
}
57-
return 1;
57+
// only map parsing error so that other mappers can do their job
58+
return 0;
5859
}
5960
}
6061

0 commit comments

Comments
 (0)