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

chore: improve some error messages #3775

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Feb 13, 2024

What I did

improve some error messages

How I did it

How to verify it

repro vyper.interfaces error message

from vyper.interfaces import ERC165

repro implements error message:

# ifoo.vy (not .vyi!)
@external
def foo():
    pass

# main.vy
import ifoo
implements: ifoo

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

currently, the compiler will panic when it encounters this case.

add a suggestion to rename the interface file to `.vyi`.

also catch all invalid types with a compiler panic.
@charles-cooper charles-cooper changed the title fix error messages chore: improve some error messages Feb 13, 2024
@charles-cooper charles-cooper enabled auto-merge (squash) February 13, 2024 00:41
@charles-cooper charles-cooper merged commit a8c6ea2 into vyperlang:master Feb 13, 2024
84 checks passed
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.

2 participants