Skip to content

Commit

Permalink
Merge pull request #3637 from benjaminguttmann-avtq/fix-stacks-error-…
Browse files Browse the repository at this point in the history
…messages
  • Loading branch information
danail-branekov authored Nov 27, 2024
2 parents f11ce5b + 565df57 commit 8c30d12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/handlers/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ func NewStack(

func (h *Stack) list(r *http.Request) (*routing.Response, error) {
authInfo, _ := authorization.InfoFromContext(r.Context())
logger := logr.FromContextOrDiscard(r.Context()).WithName("handlers.build.list")
logger := logr.FromContextOrDiscard(r.Context()).WithName("handlers.stack.list")

stacks, err := h.stackRepo.ListStacks(r.Context(), authInfo)
if err != nil {
return nil, apierrors.LogAndReturn(logger, err, "Failed to fetch buildpacks from Kubernetes")
return nil, apierrors.LogAndReturn(logger, err, "Failed to fetch stacks from Kubernetes")
}

return routing.NewResponse(http.StatusOK).WithBody(presenter.ForList(presenter.ForStack, stacks, h.serverURL, *r.URL)), nil
Expand Down

0 comments on commit 8c30d12

Please sign in to comment.