-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add message to thrown Fido2VerificationException #10
Comments
We should probably come up with a standard exception message format for the whole project and adhere to that. |
Yes. I think that message standard should include the expected and supplied value, similiar to unit testing exceptions: "Type was invalid. Expected 'create' but was 'something else' |
All thrown exceptions currently have messages now, but have different formats. |
Let's rewrite them where possible per my suggestion above. Pattern: The expected but was should only be added "where it makes sense". For null values we might as well throw: I can write a new constructor which formats it this way. |
@abergs I think we made good progress on the error messages over the last 4 years. The messages are pretty good now! Can we close this issue? |
We have indeed @iamcarbon |
To help debugging/reporting
The text was updated successfully, but these errors were encountered: