Skip to content

Improving errors#21

Open
t3m8ch wants to merge 12 commits intomainfrom
t3m8ch/improving-errors
Open

Improving errors#21
t3m8ch wants to merge 12 commits intomainfrom
t3m8ch/improving-errors

Conversation

@t3m8ch
Copy link
Copy Markdown

@t3m8ch t3m8ch commented Oct 20, 2024

close #20

@t3m8ch t3m8ch added the improvement This issue or pull request already exists label Oct 20, 2024
Comment thread src/errors.rs Outdated
Comment thread src/auth/handlers.rs
@granatam granatam requested a review from evgenymng October 21, 2024 08:57
Comment thread src/auth/handlers.rs Outdated
Comment thread src/auth/handlers.rs Outdated
Comment thread src/auth/handlers.rs Outdated
Comment thread src/auth/handlers.rs Outdated
Comment thread src/auth/handlers.rs Outdated
Comment thread src/auth/handlers.rs Outdated
Comment thread src/errors.rs Outdated
Comment thread src/errors.rs Outdated
Comment thread src/errors.rs Outdated
@t3m8ch t3m8ch requested a review from evgenymng October 24, 2024 14:42
Copy link
Copy Markdown
Contributor

@granatam granatam left a comment

Choose a reason for hiding this comment

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

Есть одно замечание, в остальном LGTM, если исправлены замечания, которые писал Женя. Исправь его, и я нажму Approve.

Comment thread src/auth/handlers.rs
* doc: Document fundamental error-handling types

* feat: Utilize the `Display` trait and make string representation of error variants snake_case

* fix: Treat all `sqlx` errors as internal
Comment thread src/auth/handlers.rs Outdated
@granatam granatam self-requested a review October 25, 2024 09:37
Copy link
Copy Markdown
Contributor

@granatam granatam left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improved error handling in code and error return from the API

3 participants