re-add panic
This commit is contained in:
parent
59c2c028c8
commit
b25c7ea5ea
@ -113,8 +113,7 @@ func (remoteConfig *Host) ConnectToSSHHost() (*ssh.Client, error) {
|
|||||||
println("Connecting to " + host)
|
println("Connecting to " + host)
|
||||||
sshClient, connectErr = ssh.Dial("tcp", host, sshConfig)
|
sshClient, connectErr = ssh.Dial("tcp", host, sshConfig)
|
||||||
if connectErr != nil {
|
if connectErr != nil {
|
||||||
continue
|
panic(fmt.Errorf("error when connecting to host %s: %w", host, connectErr))
|
||||||
// panic(fmt.Errorf("error when connecting to host %s: %w", host, connectErr))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user