Skip to content

Commit

Permalink
fix: error message role update
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdh committed Aug 4, 2022
1 parent 329bd6e commit 58523ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/v1beta1/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (h Handler) UpdateRole(ctx context.Context, request *shieldv1beta1.UpdateRo
logger.Error(err.Error())
switch {
case errors.Is(err, role.ErrNotExist):
return nil, grpcProjectNotFoundErr
return nil, grpcRoleNotFoundErr
case errors.Is(err, role.ErrConflict):
return nil, grpcConflictError
default:
Expand Down

0 comments on commit 58523ab

Please sign in to comment.