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
{{ message }}
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
Describe the bug
Various other use... function in KangoJS all work by passing in the express app like useX(app, config) but useErrorHandlerMiddlewaredoesn't. It should work the same way to keep things consistent.
To Reproduce
Attempt to use useErrorHandlerMiddleware and you will see it must be used like app.use(useErrorHandlerMiddleware(config)); rather than useErrorHandlerMiddleware(app, config).
Expected behaviour
Error handling middleware should be setup with useErrorHandlerMiddleware(app, config)
System Information
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered:
ben-ryder
changed the title
useErrorHandlerMiddleware doesn't act like other useX functions.
useErrorHandlerMiddleware doesn't act like other functions.
Mar 3, 2022
Package Information: error-handler@0.1.0
Describe the bug
Various other
use...
function in KangoJS all work by passing in the express app likeuseX(app, config)
butuseErrorHandlerMiddleware
doesn't. It should work the same way to keep things consistent.To Reproduce
Attempt to use
useErrorHandlerMiddleware
and you will see it must be used likeapp.use(useErrorHandlerMiddleware(config));
rather thanuseErrorHandlerMiddleware(app, config)
.Expected behaviour
Error handling middleware should be setup with
useErrorHandlerMiddleware(app, config)
System Information
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: