mirror of https://github.com/docker/docs.git
BugFix: nil retured for string.
Build break on windows. introduced with PR #2207 Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
This commit is contained in:
parent
5c5a004a77
commit
23b5f8c99f
|
@ -75,7 +75,7 @@ func findVBoxInstallDirInRegistry() (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errorMessage := fmt.Sprintf("Can't find VirtualBox registry entries, is VirtualBox really installed properly? %s", err)
|
errorMessage := fmt.Sprintf("Can't find VirtualBox registry entries, is VirtualBox really installed properly? %s", err)
|
||||||
log.Debugf(errorMessage)
|
log.Debugf(errorMessage)
|
||||||
return nil, fmt.Errorf(errorMessage)
|
return "", fmt.Errorf(errorMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer registryKey.Close()
|
defer registryKey.Close()
|
||||||
|
@ -84,7 +84,7 @@ func findVBoxInstallDirInRegistry() (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errorMessage := fmt.Sprintf("Can't find InstallDir registry key within VirtualBox registries entries, is VirtualBox really installed properly? %s", err)
|
errorMessage := fmt.Sprintf("Can't find InstallDir registry key within VirtualBox registries entries, is VirtualBox really installed properly? %s", err)
|
||||||
log.Debugf(errorMessage)
|
log.Debugf(errorMessage)
|
||||||
return nil, fmt.Errorf(errorMessage)
|
return "", fmt.Errorf(errorMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
return installDir, nil
|
return installDir, nil
|
||||||
|
|
Loading…
Reference in New Issue