Skip to content

Improve error handling in Tigris handler #933

Closed as not planned
Closed as not planned
@rumyantseva

Description

Currently, errors for Tigris handler are checked by

if status.Code(err) == codes.NotFound {
	return nil, common.NewErrorMsg(common.ErrNamespaceNotFound, "ns not found")
}

Which causes such imports:

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

Let's check if we can use TigrisError from the client library here. The import path looks a bit confusing, but it's a client library indeed.

Metadata

Assignees

Labels

code/enhancementSome user-visible feature could work better

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions