print error's string when panicking.

R=rsc
https://golang.org/cl/157156
This commit is contained in:
Rob Pike 2009-11-24 10:55:50 -08:00
parent f586870ec2
commit c14e265c59

View file

@ -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();
}