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) }