1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:04:39 -07:00

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