error) { if len(c.Args()) > 1 { return nil, ErrExpectedOneMachine } target, err := targetHost(c, api) if err != nil { return nil, err } host, err := api.Load(target) if err != nil { return nil, err } dockerHost, _, err := check.DefaultConnChecker.Check(host, c.Bool("swarm")) if err != nil { return nil, fmt.Errorf("Error checking TLS connection: %s", err) } userShell, err := getShell(c.String("shell")) if err != nil { return nil, err }