Add flag prefix to error output

jeff-error-cli-update
Jeff Malnick 6 years ago
parent 8d534f6803
commit 4f0412a30e

@ -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),
)
}

Loading…
Cancel
Save