-
Notifications
You must be signed in to change notification settings - Fork 8
Description
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.