We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, the error middleware has the following code:
import { ErrorRequestHandler, Request, Response } from 'express'; import CustomError from '../errors/custom.error'; export const errorMiddleware: ErrorRequestHandler = ( error: Error, _: Request, res: Response ) => When I run the code with an error, the error middleware does not get called. The signature must conform to what they expect. To make it runnable I suggest the following changes: ```typescript import { ErrorRequestHandler, NextFunction, Request, Response } from 'express'; import CustomError from '../errors/custom.error'; export const errorMiddleware: ErrorRequestHandler = ( error: Error, _: Request, res: Response, next: NextFunction ) => {
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, the error middleware has the following code:
The text was updated successfully, but these errors were encountered: