Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Go bindings: add missing error codes#72

Merged
chfast merged 3 commits intomasterfrom
go-errors
Aug 20, 2018
Merged

Go bindings: add missing error codes#72
chfast merged 3 commits intomasterfrom
go-errors

Conversation

@axic
Copy link
Copy Markdown
Member

@axic axic commented Aug 20, 2018

No description provided.

@axic axic requested a review from chfast August 20, 2018 14:38
@@ -120,7 +126,7 @@ func (err Error) Error() string {
return fmt.Sprintf("evmc: unknown internal error (%d)", int32(code))
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

return "evmc: precompile failure"
case C.EVMC_CONTRACT_VALIDATION_FAILURE:
return "evmc: contract validation failure"
case C.EVMC_ARGUMENT_OUT_RANGE:
Copy link
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants