From e9e3b67bd5d4f192561e24971464a5598607a2c0 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Fri, 13 Sep 2024 07:14:09 +0930 Subject: [PATCH] internal/stack: improve semverLessThan error handling --- internal/stack/resources.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/stack/resources.go b/internal/stack/resources.go index a7587e663..b99147ecc 100644 --- a/internal/stack/resources.go +++ b/internal/stack/resources.go @@ -250,11 +250,11 @@ func addClientCertsToResources(resourceManager *resource.Manager, certResources func semverLessThan(a, b string) (bool, error) { sa, err := semver.NewVersion(a) if err != nil { - return false, err + return false, fmt.Errorf("%w: %q", err, a) } sb, err := semver.NewVersion(b) if err != nil { - return false, err + return false, fmt.Errorf("%w: %q", err, b) } return sa.LessThan(sb), nil