Skip to content

Commit

Permalink
transport: better error message when per-RPC creds fail (grpc#5033)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl authored and easwars committed Dec 14, 2021
1 parent 2232c6f commit 9ebd3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/transport/http2_client.go
Expand Up @@ -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.
Expand Down

0 comments on commit 9ebd3cd

Please sign in to comment.