Skip to content

Commit

Permalink
internal/stack: improve semverLessThan error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Sep 12, 2024
1 parent d25d70a commit e9e3b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/stack/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9e3b67

Please sign in to comment.