Skip to content

Commit

Permalink
perflib: enrich error message (prometheus-community#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke authored May 3, 2024
1 parent e0a2809 commit c862ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/perflib/perflib.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func QueryPerformanceData(query string) ([]*PerfObject, error) {
err = header.BinaryReadFrom(r)

if err != nil {
return nil, err
return nil, fmt.Errorf("failed to read performance data block for %q with: %w", query, err)
}

// Check for "PERF" signature
Expand Down

0 comments on commit c862ae3

Please sign in to comment.