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

Provide more context in error messages #67

Open
ckreibich opened this issue Jan 29, 2024 · 0 comments
Open

Provide more context in error messages #67

ckreibich opened this issue Jan 29, 2024 · 0 comments

Comments

@ckreibich
Copy link
Member

When users encounter a hiccup in the configuration/use of an interface, they often see the message problem with interface af_packet::XYZ (Invalid argument). Two improvements would be nice:

  • More context about the cause. The code already has information, but prioritizes errno over it, as in this example: Error(errno ? strerror(errno) : "unable to create socket");. It'd be nice to keep that context in any case and enhance it with the strerror() if available.
  • For specific cases where people tend to slip up, like when multiple interfaces are configured with the same fanout ID, it'd be nice if the code could alert to that explicitly.
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

No branches or pull requests

1 participant