Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sentence case for all standard library exceptions #13400

Merged

Conversation

HertzDevil
Copy link
Contributor

This PR officially requires all exception messages in the standard library to be sentence cased, see crystal-lang/crystal-book#689. This includes both runtime exceptions and macro raises.

TypeCastError is special in that the message is emitted by the compiler during codegen, so standard library specs must account for the lowercase cast from ... to ... failed as long as previous Crystal versions are used for CI. This affects a total of 4 specs in Tuple and NamedTuple.

For compiler exceptions see #12031.

@straight-shoota straight-shoota added this to the 1.9.0 milestone Apr 29, 2023
@straight-shoota straight-shoota merged commit b65280a into crystal-lang:master May 3, 2023
@HertzDevil HertzDevil deleted the refactor/exception-case branch May 3, 2023 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants