perflib: enrich error message (#1460)

This commit is contained in:
Jan-Otto Kröpke 2024-05-03 07:51:38 +02:00 committed by GitHub
parent 7d8cf59dac
commit a2fe96fbc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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