From 96d95e7743d0974cea10a5a4ebac8e99463cbe07 Mon Sep 17 00:00:00 2001 From: smellthemoon <64083300+smellthemoon@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:45:22 +0800 Subject: [PATCH] enhance: fix pass error msg as channel name (#32511) Signed-off-by: lixinguo Co-authored-by: lixinguo --- internal/querycoordv2/services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/querycoordv2/services.go b/internal/querycoordv2/services.go index 9592dc605a..bf67f7721e 100644 --- a/internal/querycoordv2/services.go +++ b/internal/querycoordv2/services.go @@ -930,7 +930,7 @@ func (s *Server) GetShardLeaders(ctx context.Context, req *querypb.GetShardLeade var channelErr error if len(leaders) == 0 { - channelErr = merr.WrapErrChannelLack("channel not subscribed") + channelErr = merr.WrapErrChannelLack(channel.GetChannelName(), "channel not subscribed") } for _, leader := range leaders {