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

Add assert message for debugging #1939

Closed
kevaundray opened this issue Jul 16, 2023 · 0 comments · Fixed by #2491
Closed

Add assert message for debugging #1939

kevaundray opened this issue Jul 16, 2023 · 0 comments · Fixed by #2491
Assignees
Labels
enhancement New feature or request

Comments

@kevaundray
Copy link
Contributor

Problem

Currently when a constrain fails, the compiler will point us towards the line that failed. A common pattern is to have asserts with messages. For example,

assert(x < 10, "x was not less than 10")

Happy Case

Add the ability to add messages to assert statements

Alternatives Considered

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants