fix: custom timeout only for "server add"

This commit is contained in:
2024-06-25 16:13:57 +02:00
parent 7b7e1bfa97
commit 1fe601cd16
4 changed files with 43 additions and 15 deletions

View File

@ -19,7 +19,7 @@ func Fatal(hostname string, err error) error {
} else if strings.Contains(out, "Permission denied") {
return fmt.Errorf("ssh auth: permission denied for %s", hostname)
} else if strings.Contains(out, "Network is unreachable") {
return fmt.Errorf("unable to connect to %s, network is unreachable?", hostname)
return fmt.Errorf("unable to connect to %s, please check your SSH config", hostname)
}
return err