[bs-137] "spring help" prints "Unexpected error" (when it isn't)
[#50523561]
This commit is contained in:
@@ -84,8 +84,9 @@ public class SpringBootstrapCli {
|
||||
Set<BootstrapCliException.Option> options = NO_EXCEPTION_OPTIONS;
|
||||
if (ex instanceof BootstrapCliException) {
|
||||
options = ((BootstrapCliException) ex).getOptions();
|
||||
} else {
|
||||
errorMessage(ex.getMessage());
|
||||
}
|
||||
errorMessage(ex.getMessage());
|
||||
if (options.contains(BootstrapCliException.Option.SHOW_USAGE)) {
|
||||
showUsage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user