fix: improve permission denied message
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
decentral1se 2023-02-02 20:07:45 +01:00
parent 0a7fa54759
commit bf79552204
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -75,6 +75,8 @@ func Fatal(hostname string, err error) error {
return fmt.Errorf("could not resolve hostname for %s", hostname)
} else if strings.Contains(out, "Connection timed out") {
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 {
return err
}