]> Cypherpunks repositories - gostls13.git/commitdiff
print error's string when panicking.
authorRob Pike <r@golang.org>
Tue, 24 Nov 2009 18:55:50 +0000 (10:55 -0800)
committerRob Pike <r@golang.org>
Tue, 24 Nov 2009 18:55:50 +0000 (10:55 -0800)
R=rsc
https://golang.org/cl/157156

src/pkg/rpc/client.go

index 8ee4c7419b26191ae140d27f8c69b2b1f03cd872..827dbe1b410bc35b74b48f253e9f0cd291b62043 100644 (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();
 }