Browse Source

fix return err

Simon Xia 8 years ago
parent
commit
bfebde69db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fetch_request.go

+ 1 - 1
fetch_request.go

@@ -92,7 +92,7 @@ func (r *FetchRequest) decode(pd packetDecoder, version int16) (err error) {
 			}
 			fetchBlock := &fetchRequestBlock{}
 			if err = fetchBlock.decode(pd); err != nil {
-				return nil
+				return err
 			}
 			r.blocks[topic][partition] = fetchBlock
 		}