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 message for log #4306

Open
pcaversaccio opened this issue Oct 15, 2024 · 0 comments
Open

Improve error message for log #4306

pcaversaccio opened this issue Oct 15, 2024 · 0 comments
Labels
bug - UX a bug related to UX

Comments

@pcaversaccio
Copy link
Collaborator

We should improve the error message if log is used (reserved due to events):

interface Console:
    def log(str: String[400], x: uint256): view
invalid syntax (<unknown>, line 21)

  line 21:9 
       20 interface Console:
  ---> 21     def log(str: String[400], x: uint256): view
  -----------------^
       22

Something like this would be better:

invalid syntax: `log` is a reserved keyword used for events.
@pcaversaccio pcaversaccio added the bug - UX a bug related to UX label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - UX a bug related to UX
Projects
None yet
Development

No branches or pull requests

2 participants
@pcaversaccio and others