update error message
This commit is contained in:
parent
a35db2e05d
commit
10a6342233
@ -412,7 +412,7 @@ func (remoteConfig *Host) GetProxyJumpConfig(hosts map[string]*Host, opts *Confi
|
|||||||
// TODO: Add value/option to config for host key and add bool to check for host key
|
// TODO: Add value/option to config for host key and add bool to check for host key
|
||||||
hostKeyCallback, err := knownhosts.New(khPath)
|
hostKeyCallback, err := knownhosts.New(khPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "could not create hostkeycallback function")
|
return fmt.Errorf("could not create hostkeycallback function: %v", err)
|
||||||
}
|
}
|
||||||
remoteConfig.ClientConfig.HostKeyCallback = hostKeyCallback
|
remoteConfig.ClientConfig.HostKeyCallback = hostKeyCallback
|
||||||
hosts[remoteConfig.Host] = remoteConfig
|
hosts[remoteConfig.Host] = remoteConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user