From 02cd5fda166c98d81b6c87244a0b0f476825612a Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Thu, 8 Aug 2024 09:11:29 +0200 Subject: [PATCH] fix: skip return when reading from channel (#32) Signed-off-by: Alessio Greggi --- cmd/capture.go | 2 +- cmd/hunt.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/capture.go b/cmd/capture.go index ad888bc..6fd7c5a 100644 --- a/cmd/capture.go +++ b/cmd/capture.go @@ -49,7 +49,7 @@ by passing the function name symbol and the binary args. for _, functionSymbol := range functionSymbolList { syscalls, err := captor.Capture(functionSymbol, args, captureOpts) if err != nil { - return fmt.Errorf("error capturing syscall: %w", err) + fmt.Printf("error capturing syscall: %w", err) } saveOpts := writer.WriteOptions{ diff --git a/cmd/hunt.go b/cmd/hunt.go index d8a0c44..144d189 100644 --- a/cmd/hunt.go +++ b/cmd/hunt.go @@ -72,7 +72,7 @@ var huntCmd = &cobra.Command{ for _, functionSymbol := range symbolsOrigins.Symbols { syscalls, err := captor.Capture(functionSymbol, captureArgs, opts) if err != nil { - return fmt.Errorf("error capturing syscall: %w", err) + fmt.Printf("error capturing syscall: %w", err) } saveOpts := writer.WriteOptions{