Skip to content

Commit

Permalink
fix: error message
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Sep 9, 2024
1 parent 42d0553 commit 0500393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/core/ngt/handler/grpc/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (s *server) CreateAndSaveIndex(
}, info.Get())...)
code = codes.FailedPrecondition
case errors.Is(err, errors.ErrFlushingIsInProgress):
err = status.WrapWithAborted("CreateIndex API aborted to process create indexes request due to flushing indices is in progress", err, details...)
err = status.WrapWithAborted("CreateAndSaveIndex API aborted to process create indexes request due to flushing indices is in progress", err, details...)
code = codes.Aborted

Check warning on line 157 in pkg/agent/core/ngt/handler/grpc/index.go

View check run for this annotation

Codecov / codecov/patch

pkg/agent/core/ngt/handler/grpc/index.go#L155-L157

Added lines #L155 - L157 were not covered by tests
case errors.Is(err, context.Canceled):
err = status.WrapWithCanceled(fmt.Sprintf("CreateAndSaveIndex API canceled to create indexes pool_size = %d, error: %v", c.GetPoolSize(), err), err, details...)
Expand Down

0 comments on commit 0500393

Please sign in to comment.