Commit c14e265c authored by Rob Pike's avatar Rob Pike

print error's string when panicking.

R=rsc
https://golang.org/cl/157156
parent f586870e
...@@ -61,7 +61,7 @@ func (client *Client) send(c *Call) { ...@@ -61,7 +61,7 @@ func (client *Client) send(c *Call) {
client.enc.Encode(request); client.enc.Encode(request);
err := client.enc.Encode(c.Args); err := client.enc.Encode(c.Args);
if err != nil { if err != nil {
panicln("rpc: client encode error:", err) panicln("rpc: client encode error:", err.String())
} }
client.sending.Unlock(); client.sending.Unlock();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment