Go bindings: add missing error codes

This commit is contained in:
Alex Beregszaszi 2018-08-20 15:37:33 +01:00
parent 36b7976121
commit 89edc1e769
1 changed files with 6 additions and 0 deletions

View File

@ -110,6 +110,12 @@ func (err Error) Error() string {
return "evmc: precompile failure" return "evmc: precompile failure"
case C.EVMC_CONTRACT_VALIDATION_FAILURE: case C.EVMC_CONTRACT_VALIDATION_FAILURE:
return "evmc: contract validation failure" return "evmc: contract validation failure"
case C.EVMC_ARGUMENT_OUT_OF_RANGE:
return "evmc: argument out of range"
case C.EVMC_WASM_UNREACHABLE_INSTRUCTION:
return "evmc: the WebAssembly unreachable instruction has been hit during execution"
case C.EVMC_WASM_TRAP:
return "evmc: a WebAssembly trap has been hit during execution"
case C.EVMC_INTERNAL_ERROR: case C.EVMC_INTERNAL_ERROR:
return "evmc: internal error" return "evmc: internal error"
case C.EVMC_REJECTED: case C.EVMC_REJECTED: