From a2fe96fbc813e5f7e1638e5a21305612f3ef0ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Fri, 3 May 2024 07:51:38 +0200 Subject: [PATCH] perflib: enrich error message (#1460) --- pkg/perflib/perflib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/perflib/perflib.go b/pkg/perflib/perflib.go index e6e1d78c..e791bd16 100644 --- a/pkg/perflib/perflib.go +++ b/pkg/perflib/perflib.go @@ -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