Fix returns error message

Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
zhoulin xie
2019-02-08 22:30:00 +08:00
parent f51df4475b
commit ce5c1c4546
2 changed files with 2 additions and 2 deletions

View File

@@ -249,7 +249,7 @@ func (c *Client) recv(resp *Response, msg *message) error {
}
if msg.Type != messageTypeResponse {
return errors.New("unkown message type received")
return errors.New("unknown message type received")
}
defer c.channel.putmbuf(msg.p)