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

Improve error messages for bad function calls #7309

Open
aljazerzen opened this issue May 6, 2024 · 0 comments
Open

Improve error messages for bad function calls #7309

aljazerzen opened this issue May 6, 2024 · 0 comments
Labels
compiler error-message confusing error message

Comments

@aljazerzen
Copy link
Contributor

image

It should be more like:

Error: function "std::assert(std::bool, std::str)" does not exist

  select assert(false, "you cannot modify this")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unknown function

  Hint: Did you want "assert(false, message = "you cannot modify this")"
@msullivan msullivan added compiler error-message confusing error message labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler error-message confusing error message
Projects
None yet
Development

No branches or pull requests

2 participants