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

Make messages mandatory in errors #15671

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

cameel
Copy link
Member

@cameel cameel commented Dec 20, 2024

Errors shown to the user should always have a message. One situation where it is not always the case now are unimplemented feature errors. Those used to be treated as asserts but often they can actually reach the user. This PR deals with them by either converting to asserts or adding a message. Then makes the message mandatory in solUnimplemented()/solUnimplementedAssert() and in the error reporter.

This partially addresses cases like #15669, which currently get properly reported but in a very confusing way.

I could probably convert many more of these to asserts but in cases where I wasn't sure I decided to err on the side of keeping them as is.

@cameel cameel self-assigned this Dec 20, 2024
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.

1 participant