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

Replace instances of custom object being thrown with proper Error objects #112

Open
mikelax opened this issue Aug 8, 2024 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@mikelax
Copy link
Collaborator

mikelax commented Aug 8, 2024

Feature Overview

Is your feature request related to a problem? Please describe.
There are several locations within the project codebase that are throwing

This code search shows there are currently eight locations that should be refactored to throw Error objects, or objects created from the http-errors library that is already in use.

Describe the solution you'd like
All errors that are thrown in the server project show be derived from a proper Error object, and not generic objects. This will improve the consistency of the codebase and make troubleshooting easier.

As part of the code refactor, also double check that all error conditions and async (await) function calls are being caught and handled with try - catch blocks.

Additional context

Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant