From a65e9fdf77ea39ad7d790e56b8058116c3b7a78c Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 20 Aug 2018 15:53:26 +0100 Subject: [PATCH] Go bindings: reword error description for unknown cases --- bindings/go/evmc/evmc.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bindings/go/evmc/evmc.go b/bindings/go/evmc/evmc.go index 94e7209..913cc71 100644 --- a/bindings/go/evmc/evmc.go +++ b/bindings/go/evmc/evmc.go @@ -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 (