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

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