Commit Diff


commit - 507ca83545c579ada7fdc5e4cb763120b87ad70b
commit + 5eb5d0b15afff9aa87b884374ebc7a692435fef4
blob - cb6ebe7cd74d71083ec3ea88dcfb7f188e214b89
blob + bbfee97f541e3e8208f8c2f561391daf7ecbf8be
--- channel.go
+++ channel.go
@@ -227,7 +227,7 @@ func readmsg(rd io.Reader, p []byte) (n int, err error
 func sendmsg(wr io.Writer, p []byte) error {
 	size := uint32(len(p) + 4) // message size plus 4-bytes for size.
 	if err := binary.Write(wr, binary.LittleEndian, size); err != nil {
-		return nil
+		return err
 	}
 
 	// This assume partial writes to wr aren't possible. Not sure if this
blob - dce55d38b491766bba623e40556dbc31a5a04248
blob + 920bfafaf141a4676e179f09535874586495d5f9
--- client.go
+++ client.go
@@ -48,7 +48,7 @@ func (c *client) Auth(ctx context.Context, afid Fid, u
 
 	resp, err := c.transport.send(ctx, m)
 	if err != nil {
-		return Qid{}, nil
+		return Qid{}, err
 	}
 
 	rauth, ok := resp.(MessageRauth)