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

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2021-06-22 18:04:07 +08:00 committed by GitHub
parent 7a2546c24a
commit 0f05622c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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