Skip to content

Report a proper error for an unknown model name - #101

Merged
ligurio merged 1 commit into
masterfrom
ligurio/gh-xxxx-bad-model-name
Sep 9, 2026
Merged

ligurio merged 1 commit into
masterfrom
ligurio/gh-xxxx-bad-model-name

Conversation

@ligurio

@ligurio ligurio commented Sep 9, 2026

Copy link
Copy Markdown
Owner

The --model option was validated with identity, which always returns a truthy value for a non-empty string, so an invalid model name slipped through to case in check-history and blew up with a raw IllegalArgumentException ("No matching clause: ...") and a stack trace.

The patch now validates the model name against the supported models map and exits with status 1 instead of dumping a stack trace.

Fixes #100

The --model option was validated with `identity`, which always
returns a truthy value for a non-empty string, so an invalid model
name slipped through to `case` in check-history and blew up with
a raw IllegalArgumentException ("No matching clause: ...") and
a stack trace.

The patch now validates the model name against the supported
models map and exits with status 1 instead of dumping a stack
trace.

Fixes #100
@ligurio
ligurio merged commit 997f894 into master Sep 9, 2026
4 checks passed
@ligurio
ligurio deleted the ligurio/gh-xxxx-bad-model-name branch September 9, 2026 10:47
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.

No matching clause: elle-rw-register

1 participant