Merge pull request #380 from grpc/revert-372-bugfix/fix_stream_codec_errors
Revert "fix difference between unitary and stream codec error handling"
This commit is contained in:
@ -187,9 +187,6 @@ func recv(p *parser, c Codec, m interface{}) error {
|
||||
switch pf {
|
||||
case compressionNone:
|
||||
if err := c.Unmarshal(d, m); err != nil {
|
||||
if rErr, ok := err.(rpcError); ok {
|
||||
return rErr
|
||||
} else {
|
||||
return Errorf(codes.Internal, "grpc: %v", err)
|
||||
}
|
||||
default:
|
||||
|
Reference in New Issue
Block a user