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

@ -410,6 +410,24 @@ Good luck!
`
var ServerAddFailMsg = `
Failed to add server %s.
This could be caused by two things.
Abra isn't picking up your SSH configuration or you need to specify it on the
command-line (e.g you use a non-standard port or username to connect). Run
"server add" with "-d/--debug" to learn more about what Abra is doing under the
hood.
Docker is not installed on your server. You can pass "-p/--provision" to
install Docker and initialise Docker Swarm mode. See help output for "server
add"
See "abra server add -h" for more.
`
// SubCommandBefore wires up pre-action machinery (e.g. --debug handling).
func SubCommandBefore(c *cli.Context) error {
if Debug {