Skip to content

Commit e001690

Browse files
authored
[public-api] Fix panic due to incorrect err ref (#17113)
1 parent 0ea3ba3 commit e001690

File tree

1 file changed

+1
-1
lines changed
  • components/public-api-server/pkg/apiv1

1 file changed

+1
-1
lines changed

components/public-api-server/pkg/apiv1/team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (s *TeamService) ListTeams(ctx context.Context, req *connect.Request[v1.Lis
125125
for res := range resultsChan {
126126
if res.err != nil {
127127
log.Extract(ctx).WithError(err).Error("Failed to populate team with details.")
128-
return nil, err
128+
return nil, res.err
129129
}
130130

131131
resultMap[res.team.GetId()] = res.team

0 commit comments

Comments
 (0)