re-add panic

This commit is contained in:
Andrew Woodlee 2023-01-02 13:30:41 -06:00
parent 59c2c028c8
commit b25c7ea5ea

View File

@ -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