From 0f05622c09844256d29936b66eef0d7153795bba Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Tue, 22 Jun 2021 18:04:07 +0800 Subject: [PATCH] Modify error msg when index is not created (#5978) Signed-off-by: zhenshan.cao --- internal/proxy/task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/proxy/task.go b/internal/proxy/task.go index d041845b8..25fa5e306 100644 --- a/internal/proxy/task.go +++ b/internal/proxy/task.go @@ -3446,7 +3446,7 @@ func (gibpt *GetIndexBuildProgressTask) Execute(ctx context.Context) error { } } if !foundIndexID { - return errors.New(fmt.Sprint("Can't found IndexID for indexName", gibpt.IndexName)) + return fmt.Errorf("no index is created") } var allSegmentIDs []UniqueID @@ -3667,7 +3667,7 @@ func (gist *GetIndexStateTask) Execute(ctx context.Context) error { } } if !foundIndexID { - return errors.New(fmt.Sprint("Can't found IndexID for indexName", gist.IndexName)) + return fmt.Errorf("no index is created") } var allSegmentIDs []UniqueID -- GitLab