Skip to content

Commit 8c30d12

Browse files
Merge pull request #3637 from benjaminguttmann-avtq/fix-stacks-error-messages
2 parents f11ce5b + 565df57 commit 8c30d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/handlers/stack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ func NewStack(
3939

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

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

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

0 commit comments

Comments
 (0)