Skip to content

Commit 47ecde1

Browse files
committed
fix(pkg/tracing): reset the error in register_event
1 parent 73cea59 commit 47ecde1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/tracing/register_event.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func NewRegister(blackListed []string) (map[string]*EventTracingAttr, error) {
5959
attr, err = factory()
6060
if err != nil {
6161
if errors.Is(err, types.ErrNotSupported) {
62+
err = nil // reset the error if it is the last error in the loop.
6263
continue
6364
}
6465

0 commit comments

Comments
 (0)