Skip to content

Commit

Permalink
fix: print buffer inside error message
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Jul 24, 2024
1 parent b48a1ca commit 54906a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/influx_inspect/export/parquet/models/points.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,14 @@ func scanMeasurement(bufe Escaped, i int) (int, int, error) {
// It can't be a space, since whitespace is stripped prior to this
// function call.
if i >= len(buf) || buf[i] == ',' {
return -1, i, fmt.Errorf("missing measurement in: %q", buf)
return -1, i, fmt.Errorf("missing measurement in: %q", string(buf))
}

for {
i++
if i >= len(buf) {
// cpu
return -1, i, fmt.Errorf("missing fields in: %d", buf)
return -1, i, fmt.Errorf("missing fields in: %q", string(buf))
}

if buf[i-1] == '\\' {
Expand Down

0 comments on commit 54906a5

Please sign in to comment.