fix: catch more ssh failure modes with help
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-03 13:43:11 +01:00
parent 5237c7ed50
commit bfeda40e34
4 changed files with 32 additions and 7 deletions

View File

@ -27,7 +27,11 @@ func New(contextName string) (*client.Client, error) {
return nil, err
}
helper := commandconnPkg.NewConnectionHelper(ctxEndpoint)
helper, err := commandconnPkg.NewConnectionHelper(ctxEndpoint)
if err != nil {
return nil, err
}
httpClient := &http.Client{
// No tls, no proxy
Transport: &http.Transport{