fix golint

Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
This commit is contained in:
楚岳
2022-05-31 17:53:47 +08:00
parent 00ad8304c8
commit 9de32d5474
+1 -1
View File
@@ -368,7 +368,7 @@ func enableAddon(ctx context.Context, k8sClient client.Client, dc *discovery.Dis
}
if err != nil {
if errors.As(err, &pkgaddon.VersionUnMatchError{}) {
return fmt.Errorf("%v\n you can try another version by command: \"vela addon enable %s --version <version> \" ", err, name)
return fmt.Errorf("%w\nyou can try another version by command: \"vela addon enable %s --version <version> \" ", err, name)
}
return err
}