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 error handling #61

Merged
merged 6 commits into from
Jul 22, 2023
Merged

Improve error handling #61

merged 6 commits into from
Jul 22, 2023

Conversation

RichDom2185
Copy link
Member

Part of #49.

Improves the error handling to:

  • improve consistency
  • increase correctness
  • reduce duplication
  • improve abstraction

Also fixes missing early return bug introduced in #58 and addresses the issues raised in #60's description.

For better separation of concerns between the router and the API error
handling/HTTP error generation.
Prevents code duplication and improves separation of concerns. Also
paves the way for easier future changes to error messages when they
become more structured.
Ensures consistency and improves correctness.
@github-actions
Copy link

Coverage Status

coverage: 80.676%. remained the same when pulling 423574d on improve-error-handling into d918637 on main.

@RichDom2185 RichDom2185 merged commit c45af08 into main Jul 22, 2023
@RichDom2185 RichDom2185 deleted the improve-error-handling branch July 22, 2023 04:05
Copy link
Contributor

@YaleChen299 YaleChen299 left a comment

Choose a reason for hiding this comment

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

Thanks for this refactoring!

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.

3 participants