Merge branch 'main' into groups-get-account-refactoring

# Conflicts:
#	management/server/account.go
#	management/server/status/error.go
This commit is contained in:
bcmmbaga
2024-11-12 17:14:45 +03:00
6 changed files with 40 additions and 15 deletions

View File

@@ -130,6 +130,11 @@ func NewInvalidKeyIDError() error {
return Errorf(InvalidArgument, "invalid key ID")
}
// NewGetAccountError creates a new Error with Internal type for an issue getting account
func NewGetAccountError(err error) error {
return Errorf(Internal, "error getting account: %s", err)
}
// NewGroupNotFoundError creates a new Error with NotFound type for a missing group
func NewGroupNotFoundError(groupID string) error {
return Errorf(NotFound, "group: %s not found", groupID)