Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix(backend): fix crash for groups.ListContent
Browse files Browse the repository at this point in the history
  • Loading branch information
burdiyan committed Feb 27, 2024
1 parent d4ef908 commit 3113f4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/daemon/api/groups/v1alpha/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,10 @@ func (srv *Server) ListContent(ctx context.Context, in *groups.ListContentReques
e = v
}

if e == nil {
return nil, status.Errorf(codes.NotFound, "group '%s' with version '%s' is not found", in.Id, in.Version)
}

paths := e.State().Keys("content")

out := &groups.ListContentResponse{
Expand Down

0 comments on commit 3113f4f

Please sign in to comment.