From f2ec19d53d5be299717dc7d11640ebcc0c6fc603 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Thu, 28 Sep 2023 16:44:10 +0300 Subject: [PATCH] Fix syntax and don't hide error Signed-off-by: Dimitris Karakasilis --- internal/agent/install_test.go | 2 +- pkg/config/spec.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/agent/install_test.go b/internal/agent/install_test.go index b5fdd79..98da9ac 100644 --- a/internal/agent/install_test.go +++ b/internal/agent/install_test.go @@ -197,7 +197,7 @@ var _ = Describe("RunInstall", func() { It("runs the install", func() { Skip("Not ready yet") - err = RunInstall(options, "") // TODO + err = RunInstall(options) Expect(err).ToNot(HaveOccurred()) }) }) diff --git a/pkg/config/spec.go b/pkg/config/spec.go index 261c723..d5170a2 100644 --- a/pkg/config/spec.go +++ b/pkg/config/spec.go @@ -199,7 +199,7 @@ func NewUpgradeSpec(cfg *Config) (*v1.UpgradeSpec, error) { squashedRec, err := hasSquashedRecovery(cfg, ep.Recovery) if err != nil { - return nil, fmt.Errorf("failed checking for squashed recovery") + return nil, fmt.Errorf("failed checking for squashed recovery: %w", err) } if squashedRec {