mirror of
https://github.com/golang/go
synced 2024-10-14 03:43:28 +00:00
print error's string when panicking.
R=rsc https://golang.org/cl/157156
This commit is contained in:
parent
f586870ec2
commit
c14e265c59
|
@ -61,7 +61,7 @@ func (client *Client) send(c *Call) {
|
|||
client.enc.Encode(request);
|
||||
err := client.enc.Encode(c.Args);
|
||||
if err != nil {
|
||||
panicln("rpc: client encode error:", err)
|
||||
panicln("rpc: client encode error:", err.String())
|
||||
}
|
||||
client.sending.Unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue