From aca5e2205b4dd18a13706c725daa0f326e10000b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 6 Mar 2026 15:55:18 +0200 Subject: fix: preserve error chains in tracepoint attach (task 384) --- internal/ior.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ior.go b/internal/ior.go index b5f9091..ee0663e 100644 --- a/internal/ior.go +++ b/internal/ior.go @@ -98,7 +98,7 @@ func attachTracepointsWith(module tracepointModule, shouldAttach func(string) bo prog, err := module.getProgram(fmt.Sprintf("handle_%s", name)) if err != nil { - return fmt.Errorf("Failed to get BPF program handle_%s: %v", name, err) + return fmt.Errorf("failed to get BPF program handle_%s: %w", name, err) } logln("Attached prog handle_", name) -- cgit v1.2.3