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 c1e50bb commit b48a1ca
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")
return -1, i, fmt.Errorf("missing measurement in: %q", buf)
}

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

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

0 comments on commit b48a1ca

Please sign in to comment.