-
Notifications
You must be signed in to change notification settings - Fork 393
Closed
Labels
branch/3.1.xIssue for a branchIssue for a branchfor/backportFor backportingFor backportingtype/bugIs a bug reportIs a bug report
Milestone
Description
Boot upgrade in #952.
There is a change between spring-boot 3.2.0
and 3.2.1
in its runner logic where exception is no longer wrapped in IllegalStateException
.
In below code we used to check cause assuming actual exception is CommandExecution.CommandParserExceptionsException
.
Lines 62 to 64 in cb8f44f
if (exception.getCause() instanceof CommandExecution.CommandParserExceptionsException) { | |
return 2; | |
} |
We can mitigate this by checking both exception itself and it's cause(in case user don't compile against the spring-boot
version spring-shell
is testing).
This also happens with spring-shell 3.1.x
as change in spring-boot
was backported into 3.1.7
.
Metadata
Metadata
Assignees
Labels
branch/3.1.xIssue for a branchIssue for a branchfor/backportFor backportingFor backportingtype/bugIs a bug reportIs a bug report