Skip to content

Commit 6914432

Browse files
authored
Merge pull request #33 from JoeWrightss/patch-1
Fix returns error message
2 parents f02858b + ce5c1c4 commit 6914432

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
@@ -255,7 +255,7 @@ func (c *Client) recv(resp *Response, msg *message) error {
255255
}
256256

257257
if msg.Type != messageTypeResponse {
258-
return errors.New("unkown message type received")
258+
return errors.New("unknown message type received")
259259
}
260260

261261
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)