Skip to content

Commit 296afc2

Browse files
menghanleaswars
authored andcommitted
transport: better error message when per-RPC creds fail (#5033)
1 parent e15d978 commit 296afc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/transport/http2_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func (t *http2Client) getTrAuthData(ctx context.Context, audience string) (map[s
588588
return nil, err
589589
}
590590

591-
return nil, status.Errorf(codes.Unauthenticated, "transport: %v", err)
591+
return nil, status.Errorf(codes.Unauthenticated, "transport: per-RPC creds failed due to error: %v", err)
592592
}
593593
for k, v := range data {
594594
// Capital header names are illegal in HTTP/2.

0 commit comments

Comments
 (0)