You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use the @hapi/boom package directly for our HTTP errors. I propose we instead use this package which wraps @hapi/boom as an express middleware.
Doing so will result in more testable and clearer code:
throwBoom.badImplementation('SMTP settings unavailable')// Uses throw and weird global variable, bad practice.
We currently use the
@hapi/boom
package directly for our HTTP errors. I propose we instead use this package which wraps@hapi/boom
as an express middleware.Doing so will result in more testable and clearer code:
vs.
The text was updated successfully, but these errors were encountered: