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

Better error message for missing enum item #3262

Closed
milkyklim opened this issue Jan 28, 2023 · 0 comments · Fixed by #3264
Closed

Better error message for missing enum item #3262

milkyklim opened this issue Jan 28, 2023 · 0 comments · Fixed by #3264

Comments

@milkyklim
Copy link

Version Information

  • vyper Version (output of vyper --version): 0.3.8
  • OS: osx
  • Python Version (output of python --version): Python 3.8.6

What's your issue about?

Would it be possible to have more descriptive message for following error – missing item in enum?

enum Roles:
    ADMIN
    USER
#   GUEST

... 

Roles.GUEST

Right now I get ERROR: Unable to load project. Reason: AttributeError: 'VyperType' object has no attribute '_id'.

How can it be fixed?

--

@milkyklim milkyklim changed the title Better rrror message for missing enum item Better error message for missing enum item Jan 28, 2023
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 a pull request may close this issue.

1 participant