enhance: fix pass error msg as channel name (#32511)

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
pull/32545/head
smellthemoon 2024-04-23 16:45:22 +08:00 committed by GitHub
parent 3119a7b23f
commit 96d95e7743
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {