From e4dabe905a6fab35248d2d03d0eed053df3bdf0f Mon Sep 17 00:00:00 2001 From: Cedric Cordenier Date: Fri, 5 Dec 2025 16:03:44 +0000 Subject: [PATCH] [chore] Add body when gateway returns non-200 error code --- cmd/secrets/common/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/secrets/common/handler.go b/cmd/secrets/common/handler.go index 021b3826..c0487629 100644 --- a/cmd/secrets/common/handler.go +++ b/cmd/secrets/common/handler.go @@ -424,7 +424,7 @@ func (h *Handler) Execute( return err } if status != http.StatusOK { - return fmt.Errorf("gateway returned a non-200 status code: %d", status) + return fmt.Errorf("gateway returned a non-200 status code: status_code=%d, body=%s", status, respBody) } return h.ParseVaultGatewayResponse(method, respBody) }