forked from coop-cloud/abra
fix: better error message when network gone
This commit is contained in:
parent
eec6469ba1
commit
ff58646cfc
@ -77,6 +77,8 @@ func Fatal(hostname string, err error) error {
|
||||
return fmt.Errorf("connection timed out for %s", hostname)
|
||||
} 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)
|
||||
} else {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user