Skip to content

Commit

Permalink
update: error code
Browse files Browse the repository at this point in the history
  • Loading branch information
teodor-yanev committed Jun 14, 2024
1 parent 64a7505 commit 271269f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controlplane/handlers_entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *Server) ReconcileEntityRegistration(
// Todo: We don't support other entities yet. This should be updated when we do.
entityType := in.GetEntity()
if pb.EntityFromString(entityType) != pb.Entity_ENTITY_REPOSITORIES {
return nil, util.UserVisibleError(codes.Internal, "entity type %s not supported", entityType)
return nil, util.UserVisibleError(codes.InvalidArgument, "entity type %s not supported", entityType)
}

providerName := in.GetContext().GetProvider()
Expand Down

0 comments on commit 271269f

Please sign in to comment.