-
Notifications
You must be signed in to change notification settings - Fork 69
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
Function name as part of errors #135
Comments
Hey, Sorry for the awful delay in replying. Yes, that sounds quite useful, though I'm not sure I fully understand what you'd like tracked. The issue is mostly that the native API of The |
Hmm, looking through the variants, I think |
Yes, that would be perfect. |
Done in #147 as requested. Thanks @ionut-arm , you're the best! |
What would people think about including (the name of) the called function in error values?
E.g. most error values could include a field of type cryptoki::context::Function. The error message could then look like
Function::Login failed: RvError::PinIncorrect: The specified PIN is ...
.Without the function name, error messages are less useful and callers of the library can't simply propagate errors. Instead they will likely create their own error types that include the function name in some way or another.
The text was updated successfully, but these errors were encountered: