Sitelet https://github.com/spring-projects/spring-shell/pull/1393
Skip to content

Fail with non-zero exit code when a command cannot be parsed - #1393

Open
czpilar wants to merge 1 commit into
spring-projects:mainfrom
czpilar:patches/1391-parsing-error-exit-code
Open

czpilar wants to merge 1 commit into
spring-projects:mainfrom
czpilar:patches/1391-parsing-error-exit-code

Conversation

@czpilar

@czpilar czpilar commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

NonInteractiveShellRunner only logged parsing errors, missing script files and script read errors, so the application exited with code 0. These errors now throw a CommandExecutionException.

Resolves #1391

NonInteractiveShellRunner only logged parsing errors, missing script
files and script read errors, so the application exited with code 0.
These errors now throw a CommandExecutionException.

Resolves spring-projects#1391

Signed-off-by: David Pilar <david@czpilar.net>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NonInteractiveShellRunner, wrong exit value when Commands cannot be parsed

1 participant