Skip to content

Commit ce5c1c4

Browse files
committed
Fix returns error message
Signed-off-by: zhoulin xie <[email protected]>
1 parent f51df44 commit ce5c1c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func (c *Client) recv(resp *Response, msg *message) error {
249249
}
250250

251251
if msg.Type != messageTypeResponse {
252-
return errors.New("unkown message type received")
252+
return errors.New("unknown message type received")
253253
}
254254

255255
defer c.channel.putmbuf(msg.p)

services.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *serviceSet) dispatch(ctx context.Context, serviceName, methodName strin
7676
switch v := obj.(type) {
7777
case proto.Message:
7878
if err := proto.Unmarshal(p, v); err != nil {
79-
return status.Errorf(codes.Internal, "ttrpc: error unmarshaling payload: %v", err.Error())
79+
return status.Errorf(codes.Internal, "ttrpc: error unmarshalling payload: %v", err.Error())
8080
}
8181
default:
8282
return status.Errorf(codes.Internal, "ttrpc: error unsupported request type: %T", v)

0 commit comments

Comments
 (0)