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

More specific error message for division by zero #8064

Closed
rschumi0 opened this issue Dec 19, 2019 · 3 comments
Closed

More specific error message for division by zero #8064

rschumi0 opened this issue Dec 19, 2019 · 3 comments

Comments

@rschumi0
Copy link

It would be nice if there could be a more meaningful error message when a division by zero is happening. Right now the message is only: VM error: invalid opcode.

This can make debugging more troublesome, especially since unexpected zeros can occur easily, e.g., when an overflow happens.

@axic axic added the feature label Dec 19, 2019
@chriseth
Copy link
Contributor

This kind of conflicts with the assert / require dualism. I would say it is a duplicate of #1686

@cameel
Copy link
Member

cameel commented Mar 10, 2021

Do we consider this solved now that we have implemented #9995?

@axic
Copy link
Member

axic commented Mar 10, 2021

Yes. It is now up to frameworks to support it, there are some pending issues for that, but it is beyond our control.

@axic axic closed this as completed Mar 10, 2021
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

No branches or pull requests

4 participants