From 4b09caa5dcc9ac4ddd375fc0c58635ec2a0d88bc Mon Sep 17 00:00:00 2001 From: Dorian Perkins Date: Thu, 28 Jan 2021 18:54:56 -0800 Subject: [PATCH] commit generated code change --- examples/ping-thrift/gen-go/ping/tchan-ping.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/ping-thrift/gen-go/ping/tchan-ping.go b/examples/ping-thrift/gen-go/ping/tchan-ping.go index 86ecf96e..ea1c5fac 100644 --- a/examples/ping-thrift/gen-go/ping/tchan-ping.go +++ b/examples/ping-thrift/gen-go/ping/tchan-ping.go @@ -43,6 +43,10 @@ func (c *tchanPingPongServiceClient) Ping(ctx thrift.Context, request *Ping) (*P } success, err := c.client.Call(ctx, c.thriftService, "Ping", &args, &resp) if err == nil && !success { + switch { + default: + err = fmt.Errorf("received no result or unknown exception for Ping") + } } return resp.GetSuccess(), err