Skip to content

Commit

Permalink
return error if unable to get os.UserHomeDir in ssh-key when resolvin…
Browse files Browse the repository at this point in the history
…g absolute path
  • Loading branch information
marcvelasco committed Oct 7, 2021
1 parent 4f5524f commit a48e875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/registry/drvs/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func configure(cc config.ClusterConfig, n config.Node) (interface{}, error) {
if strings.HasPrefix(cc.SSHKey, "~") {
dirname, err := os.UserHomeDir()
if err != nil {
return nil, errors.Errorf("Error determining path to ssh key")
return nil, errors.Errorf("Error determining path to ssh key: %v", err)
}
d.SSHKey = filepath.Join(dirname, cc.SSHKey[1:])
} else {
Expand Down

0 comments on commit a48e875

Please sign in to comment.