未验证 提交 0f05622c 编写于 作者: Z zhenshan.cao 提交者: GitHub

Modify error msg when index is not created (#5978)

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 7a2546c2
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册