From 159aef8dcee11f716b674a4880e4451bce17700e Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Wed, 1 Dec 2021 11:07:08 -0800 Subject: [PATCH] [transport_oauth_error] transport: better error message when per-RPC creds fail --- internal/transport/http2_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/transport/http2_client.go b/internal/transport/http2_client.go index 3a77a782979d..f0c72d337105 100644 --- a/internal/transport/http2_client.go +++ b/internal/transport/http2_client.go @@ -588,7 +588,7 @@ func (t *http2Client) getTrAuthData(ctx context.Context, audience string) (map[s return nil, err } - return nil, status.Errorf(codes.Unauthenticated, "transport: %v", err) + return nil, status.Errorf(codes.Unauthenticated, "transport: per-RPC creds failed due to error: %v", err) } for k, v := range data { // Capital header names are illegal in HTTP/2.