Skip to content

Commit c1190f3

Browse files
committed
lint
1 parent 9d44f75 commit c1190f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/minikube/driver/auxdriver/install.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ import (
3939
)
4040

4141
func newAuxUnthealthyError(path string) error {
42-
return errors.New(fmt.Sprintf(`failed to execute auxiliary version command "%s --version"`, path))
42+
return fmt.Errorf(`failed to execute auxiliary version command "%s --version"`, path)
4343
}
4444

45-
func newAuxNotFoundError(path string) error {
46-
return errors.New(fmt.Sprintf("auxiliary driver not found in path command %s", path))
45+
func newAuxNotFoundError(name, path string) error {
46+
return fmt.Errorf("auxiliary driver %s not found in path %s", name, path)
4747
}
4848

4949
// ErrAuxDriverVersionCommandFailed indicates the aux driver 'version' command failed to run
@@ -139,7 +139,7 @@ func validateDriver(executable string, v semver.Version) (string, error) {
139139
path, err := exec.LookPath(executable)
140140
if err != nil {
141141
klog.Warningf("driver not in path : %s, %v", path, err.Error())
142-
ErrAuxDriverVersionNotinPath = newAuxNotFoundError(path)
142+
ErrAuxDriverVersionNotinPath = newAuxNotFoundError(executable, path)
143143
return path, ErrAuxDriverVersionNotinPath
144144
}
145145

0 commit comments

Comments
 (0)