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

Improve general error handling + PCIe Hex IDs #88

Merged
merged 7 commits into from
Jul 23, 2024

Conversation

twilfredo
Copy link
Contributor

@twilfredo twilfredo commented Jul 21, 2024

As we are moving towards a v1.0, let's try to not panic on trivial errors, instead log the error the propagate it up the call stack.

This does come at the cost of more verbose code, I think that's justified when we need to debug, at least we can grep the error message instead of trying to figure out what failed.

Also add support to entering PCIe VID/DevIDs in hex format for the PCIe DOE transport layer. That is 0x prefixed. We still accept base 10 as before as well.

@twilfredo twilfredo force-pushed the wilfred/improve-error-handling branch from 21e181c to 277c765 Compare July 21, 2024 08:46
@twilfredo twilfredo requested a review from alistair23 July 21, 2024 23:34
@twilfredo twilfredo force-pushed the wilfred/improve-error-handling branch from 277c765 to 5d153d5 Compare July 21, 2024 23:36
@twilfredo twilfredo force-pushed the wilfred/improve-error-handling branch from 1aaa595 to bb98859 Compare July 23, 2024 05:31
@twilfredo twilfredo changed the title Improve general error handling Improve general error handling + PCIe Hex IDs Jul 23, 2024
@twilfredo twilfredo requested a review from alistair23 July 23, 2024 05:32
Allows the pcie vendor and device ids to be entered in either hex or
base 10 format. This should maintain backwards compatibility also.

Signed-off-by: Wilfred Mallawa <[email protected]>
@twilfredo twilfredo force-pushed the wilfred/improve-error-handling branch from bb98859 to 597e8ad Compare July 23, 2024 05:34
@twilfredo twilfredo merged commit 5d23d7d into master Jul 23, 2024
2 checks passed
@twilfredo twilfredo deleted the wilfred/improve-error-handling branch July 23, 2024 05:39
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.

2 participants