fix: give better error message on server create
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
886009975d
commit
1392afc015
|
@ -3,6 +3,7 @@ package server
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"os/user"
|
"os/user"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"coopcloud.tech/abra/cli/internal"
|
"coopcloud.tech/abra/cli/internal"
|
||||||
"coopcloud.tech/abra/pkg/client"
|
"coopcloud.tech/abra/pkg/client"
|
||||||
|
@ -79,7 +80,11 @@ All communication between Abra and the server will use this SSH connection.
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := cl.Info(ctx); err != nil {
|
if _, err := cl.Info(ctx); err != nil {
|
||||||
logrus.Fatalf("unable to make a connection to '%s'?", domainName)
|
if strings.Contains(err.Error(), "command not found") {
|
||||||
|
logrus.Fatalf("docker is not installed on '%s'?", domainName)
|
||||||
|
} else {
|
||||||
|
logrus.Fatalf("unable to make a connection to '%s'?", domainName)
|
||||||
|
}
|
||||||
logrus.Debug(err)
|
logrus.Debug(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue