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

Better WebAuthn and other error responses #2608

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yaleman
Copy link
Member

@yaleman yaleman commented Mar 2, 2024

Fixes that thing where if you don't have UV you should get a slightly nicer error.

Checklist

  • This pr contains no AI generated code
  • cargo fmt has been run
  • cargo clippy has been run
  • cargo test has been run and passes
  • book chapter included (if relevant)
  • design document included (if relevant)

@yaleman yaleman added the uwu ✧・゚: *✧・゚♡*(ᵘʷᵘ)*♡・゚✧*:・゚✧ label Mar 2, 2024
@yaleman yaleman requested a review from Firstyear March 2, 2024 09:41
@yaleman yaleman added the enhancement New feature or request label Mar 2, 2024
/// debug format with spaces
///
/// Probably shouldn't use this with any of the complex types because it'll get weird quick!
pub fn variant_as_nice_string(&self) -> String {
Copy link
Member

Choose a reason for hiding this comment

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

Are we using this anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, aded it over here as a first run to get a nice response to the user

Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be better to just have a to_str that matches rather than a regex? Seems a bit overkill ...

@yaleman yaleman self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request uwu ✧・゚: *✧・゚♡*(ᵘʷᵘ)*♡・゚✧*:・゚✧
Projects
Status: 🔖 Ready
Development

Successfully merging this pull request may close these issues.

None yet

2 participants