mirror of
https://github.com/golang/go
synced 2024-11-25 11:07:59 -07: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 New Issue
Block a user