From 8808236c1fb46cfa11571ec3f4adeae2c2de4dee Mon Sep 17 00:00:00 2001 From: Jeff Malnick Date: Mon, 5 Oct 2020 21:04:10 -0700 Subject: [PATCH] Add flag prefix to error output --- internal/cmd/base/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/base/format.go b/internal/cmd/base/format.go index 2f4286cd2e..caf3653481 100644 --- a/internal/cmd/base/format.go +++ b/internal/cmd/base/format.go @@ -168,7 +168,7 @@ func PrintApiError(in *api.Error) string { ) for _, field := range in.Details.RequestFields { ret = append(ret, - fmt.Sprintf(" Name: %s", strings.ReplaceAll(field.Name, "_", "-")), + fmt.Sprintf(" Name: -%s", strings.ReplaceAll(field.Name, "_", "-")), fmt.Sprintf(" Error: %s", field.Description), ) }