VOL-2815 - for multiple target commands exit with error status if one fails
Change-Id: Idc2d3e9c5d40c66d462bf336058fafc39d592f9c
diff --git a/internal/pkg/commands/error.go b/internal/pkg/commands/error.go
index ff641d3..d198a5c 100644
--- a/internal/pkg/commands/error.go
+++ b/internal/pkg/commands/error.go
@@ -18,16 +18,19 @@
package commands
import (
+ "errors"
"fmt"
- "google.golang.org/grpc/status"
"regexp"
"strings"
+
+ "google.golang.org/grpc/status"
)
var (
- descRE = regexp.MustCompile(`desc = "(.*)"`)
- try2RE = regexp.MustCompile(`all SubConns are in TransientFailure, latest connection error: (.*)`)
- try3RE = regexp.MustCompile(`all SubConns are in TransientFailure, (.*)`)
+ descRE = regexp.MustCompile(`desc = "(.*)"`)
+ try2RE = regexp.MustCompile(`all SubConns are in TransientFailure, latest connection error: (.*)`)
+ try3RE = regexp.MustCompile(`all SubConns are in TransientFailure, (.*)`)
+ NoReportErr = errors.New("no-report-please")
)
func ErrorToString(err error) string {