From c14e265c59c0bce32c3586e49c13df8a15db763b Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 24 Nov 2009 10:55:50 -0800 Subject: [PATCH] print error's string when panicking. R=rsc https://golang.org/cl/157156 --- src/pkg/rpc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/rpc/client.go b/src/pkg/rpc/client.go index 8ee4c7419b..827dbe1b41 100644 --- a/src/pkg/rpc/client.go +++ b/src/pkg/rpc/client.go @@ -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(); }