mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-28 23:56:36 +00:00
perflib: enrich error message (#1460)
This commit is contained in:
@@ -279,7 +279,7 @@ func QueryPerformanceData(query string) ([]*PerfObject, error) {
|
|||||||
err = header.BinaryReadFrom(r)
|
err = header.BinaryReadFrom(r)
|
||||||
|
|
||||||
if err != nil {
|
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
|
// Check for "PERF" signature
|
||||||
|
|||||||
Reference in New Issue
Block a user