fix: sshPkg.Fatal has more nuance

See toolshed/abra#507
This commit is contained in:
2025-03-23 10:27:58 +01:00
parent 47045ca8f1
commit 6d64e0edd3
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,8 @@ func Fatal(hostname string, err error) error {
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, please check your SSH config", hostname)
} else if strings.Contains(out, "Is the docker daemon running") {
return fmt.Errorf("docker: is the daemon running / your user has docker permissions?")
}
return err