|
@@ -112,9 +112,15 @@ func startRBE(ctx Context, config Config) {
|
|
|
|
|
|
func stopRBE(ctx Context, config Config) {
|
|
|
cmd := Command(ctx, config, "stopRBE bootstrap", rbeCommand(ctx, config, bootstrapCmd), "-shutdown")
|
|
|
- if output, err := cmd.CombinedOutput(); err != nil {
|
|
|
+ output, err := cmd.CombinedOutput()
|
|
|
+ if err != nil {
|
|
|
ctx.Fatalf("rbe bootstrap with shutdown failed with: %v\n%s\n", err, output)
|
|
|
}
|
|
|
+
|
|
|
+ if len(output) > 0 {
|
|
|
+ fmt.Fprintln(ctx.Writer, "")
|
|
|
+ fmt.Fprintln(ctx.Writer, fmt.Sprintf("%s", output))
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// DumpRBEMetrics creates a metrics protobuf file containing RBE related metrics.
|