Skip to content

Commit

Permalink
Merge pull request #813 from jre21/helper_binaries_hint
Browse files Browse the repository at this point in the history
Add a hint to resolve a misconfigured helper_binaries_dir
  • Loading branch information
openshift-merge-robot committed Oct 30, 2021
2 parents 7abfd45 + db4a2d2 commit 2dd5d30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1151,10 +1151,11 @@ func (c *Config) FindHelperBinary(name string, searchPATH bool) (string, error)
if searchPATH {
return exec.LookPath(name)
}
configHint := "To resolve this error, set the helper_binaries_dir key in the `[engine]` section of containers.conf to the directory containing your helper binaries."
if len(c.Engine.HelperBinariesDir) == 0 {
return "", errors.Errorf("could not find %q because there are no helper binary directories configured", name)
return "", errors.Errorf("could not find %q because there are no helper binary directories configured. %s", name, configHint)
}
return "", errors.Errorf("could not find %q in one of %v", name, c.Engine.HelperBinariesDir)
return "", errors.Errorf("could not find %q in one of %v. %s", name, c.Engine.HelperBinariesDir, configHint)
}

// ImageCopyTmpDir default directory to store tempory image files during copy
Expand Down

0 comments on commit 2dd5d30

Please sign in to comment.