influx-cli icon indicating copy to clipboard operation
influx-cli copied to clipboard

Clean up `TemplateSummaryError` error formatting

Open serenibyss opened this issue 3 years ago • 0 comments

In api/Error.go, we are using \n for error formatting in a few places, when errors are usually expected to be single line return values. For example here: https://github.com/influxdata/influx-cli/blob/041ebf65e336632f2fe4028396f5574238b6b28b/api/error.go#L121 (this code has changed very slightly since this permalink, but the result is the same).

@lesam suggested using a tool like https://github.com/hashicorp/go-multierror instead to clean this up

serenibyss avatar Feb 17 '22 20:02 serenibyss