mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
Avoid hard closing/crashing interative clients on SSH dialing failures
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ func GetSSHClient(manualSync bool) (*ssh.Client, string, bool) {
|
||||
sshClient, err := ssh.Dial("tcp", ip+":"+port, sshConfig)
|
||||
if err != nil {
|
||||
fmt.Println(core.AnsiError+"Sync failed - Unable to connect to remote server:", err.Error()+core.AnsiReset)
|
||||
os.Exit(core.ErrorServerConnection)
|
||||
core.Exit(core.ErrorServerConnection) // do not close/crash interactive clients
|
||||
}
|
||||
|
||||
return sshClient, entryRoot, isWindows
|
||||
|
||||
Reference in New Issue
Block a user