mirror of https://github.com/status-im/evmc.git
Go bindings: reword error description for unknown cases
This commit is contained in:
parent
eb447e9ecc
commit
a65e9fdf77
|
@ -116,17 +116,15 @@ func (err Error) Error() string {
|
|||
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:
|
||||
return "evmc: internal error"
|
||||
case C.EVMC_REJECTED:
|
||||
return "evmc: rejected"
|
||||
}
|
||||
|
||||
if code < 0 {
|
||||
return fmt.Sprintf("evmc: unknown internal error (%d)", int32(code))
|
||||
return fmt.Sprintf("evmc: internal error (%d)", int32(code))
|
||||
}
|
||||
|
||||
return fmt.Sprintf("evmc: unknown status code %d", int32(code))
|
||||
return fmt.Sprintf("evmc: unknown non-fatal status code %d", int32(code))
|
||||
}
|
||||
|
||||
const (
|
||||
|
|
Loading…
Reference in New Issue