mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 16:38:06 +00:00
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…
x
Reference in New Issue
Block a user