()
| 509 | } |
| 510 | |
| 511 | func (e *commandError) Error() string { |
| 512 | if e == nil { |
| 513 | return "" |
| 514 | } |
| 515 | exitErr, ok := e.err.(*exec.ExitError) |
| 516 | if !ok { |
| 517 | return e.err.Error() |
| 518 | } |
| 519 | |
| 520 | stderr := "" |
| 521 | if exitErr.Stderr != nil { |
| 522 | stderr = string(stderr) |
| 523 | } |
| 524 | return fmt.Sprintf("%q: %q", exitErr.Error(), stderr) |
| 525 | } |
| 526 | |
| 527 | func isUp(d deployer) error { |
| 528 | n, err := clusterSize(d) |
no outgoing calls