Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement in error handling #350

Merged
merged 5 commits into from Apr 12, 2024

Conversation

Atul-source
Copy link
Contributor

In this PR I have done error handling improvments.

Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
sanfern
sanfern previously approved these changes Mar 26, 2024
Copy link
Contributor

@sanfern sanfern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@pmoroney pmoroney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the places where we are using the fmt.Errorf() function we should change it to %w since that is still valid according to https://pkg.go.dev/fmt@go1.22.1#Errorf. If there are test failures we should investigate that and see if we need to modify the tests to handle wrapped errors.

kf/bpf.go Outdated Show resolved Hide resolved
kf/bpf.go Outdated Show resolved Hide resolved
kf/bpf.go Outdated Show resolved Hide resolved
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Copy link

@pmoroney pmoroney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@sanfern sanfern merged commit 40c28dd into l3af-project:main Apr 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants