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

Go bindings: add missing error codes #72

Merged
merged 3 commits into from
Aug 20, 2018
Merged

Go bindings: add missing error codes #72

merged 3 commits into from
Aug 20, 2018

Conversation

axic
Copy link
Member

@axic axic commented Aug 20, 2018

No description provided.

@@ -120,7 +126,7 @@ func (err Error) Error() string {
return fmt.Sprintf("evmc: unknown internal error (%d)", int32(code))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove "unknown" from here as we do not predefine any internal errors at the moment.

Copy link
Member Author

@axic axic Aug 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps "specific internal error" ? "user-defined internal error" ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd go with "internal error" only.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the other internal error should also have a value IIRC.

@@ -110,6 +110,12 @@ func (err Error) Error() string {
return "evmc: precompile failure"
case C.EVMC_CONTRACT_VALIDATION_FAILURE:
return "evmc: contract validation failure"
case C.EVMC_ARGUMENT_OUT_RANGE:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be EVMC_ARGUMENT_OUT_OF_RANGE. See Go CI builds.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed already, just didn't push before the other one is decided.

@axic axic mentioned this pull request Aug 20, 2018
@chfast chfast merged commit 6e6d71a into master Aug 20, 2018
@chfast chfast deleted the go-errors branch August 20, 2018 15:07
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