mirror of https://github.com/status-im/evmc.git
Go bindings: do not panic on unknown status code
This commit is contained in:
parent
89edc1e769
commit
eb447e9ecc
|
@ -126,7 +126,7 @@ func (err Error) Error() string {
|
|||
return fmt.Sprintf("evmc: unknown internal error (%d)", int32(code))
|
||||
}
|
||||
|
||||
panic(fmt.Sprintf("evmc: unknown status code %d", int32(code)))
|
||||
return fmt.Sprintf("evmc: unknown status code %d", int32(code))
|
||||
}
|
||||
|
||||
const (
|
||||
|
|
Loading…
Reference in New Issue