Skip to content

Improve grammar of exceptions#111

Merged
neuecc merged 1 commit into
Cysharp:masterfrom
xPaw:patch-1
Jun 3, 2024
Merged

Improve grammar of exceptions#111
neuecc merged 1 commit into
Cysharp:masterfrom
xPaw:patch-1

Conversation

@xPaw
Copy link
Copy Markdown
Contributor

@xPaw xPaw commented Jun 3, 2024

I've noticed the value printed in ThrowArgumentParseFailed may not be correct in some cases, like when TryIncrementIndex fails, it will print the argument name itself, rather than the value (because there isn't one). Maybe this should be special cased to a new exception like Argument '{argumentName}' requires a value, but none was specified.?

@neuecc
Copy link
Copy Markdown
Member

neuecc commented Jun 3, 2024

Thanks!
I agree, while the current solution was a bit of a quick fix, it would be preferable to have a more thorough separation.

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.

2 participants