Go bindings: do not panic on unknown status code

This commit is contained in:
Alex Beregszaszi 2018-08-20 15:46:43 +01:00
parent 89edc1e769
commit eb447e9ecc
1 changed files with 1 additions and 1 deletions

View File

@ -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 (