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:
Kunal Kushwaha 2015-11-12 16:00:32 +09:00
parent 5c5a004a77
commit 23b5f8c99f
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ func findVBoxInstallDirInRegistry() (string, error) {
if err != nil {
errorMessage := fmt.Sprintf("Can't find VirtualBox registry entries, is VirtualBox really installed properly? %s", err)
log.Debugf(errorMessage)
return nil, fmt.Errorf(errorMessage)
return "", fmt.Errorf(errorMessage)
}
defer registryKey.Close()
@ -84,7 +84,7 @@ func findVBoxInstallDirInRegistry() (string, error) {
if err != nil {
errorMessage := fmt.Sprintf("Can't find InstallDir registry key within VirtualBox registries entries, is VirtualBox really installed properly? %s", err)
log.Debugf(errorMessage)
return nil, fmt.Errorf(errorMessage)
return "", fmt.Errorf(errorMessage)
}
return installDir, nil