Skip to content

Commit e88f854

Browse files
corneliusweigk8s-ci-robot
authored andcommitted
Fix handling when no matching platform is found (#345)
`err` is nil here, so errors.Wrapf(...) is nil too, so that the calling code assumes that no error happened.
1 parent 641920a commit e88f854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/installation/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func Install(p environment.Paths, plugin index.Plugin, opts InstallOpts) error {
7070
return errors.Wrap(err, "failed trying to find a matching platform in plugin spec")
7171
}
7272
if !ok {
73-
return errors.Wrapf(err, "plugin %q does not offer installation for this platform", plugin.Name)
73+
return errors.Errorf("plugin %q does not offer installation for this platform", plugin.Name)
7474
}
7575

7676
// The actual install should be the last action so that a failure during receipt

0 commit comments

Comments
 (0)