Skip to content

Bug: customErrorMessage actually got passed 4 arguments, but it's ts declaration only has 3 arguments #359

@gavinliukaiber

Description

@gavinliukaiber

customErrorMessage actually got passed 4 arguments:

errorMessage(req, res, error, responseTime)

, but its ts declaration only has 3 arguments:
customErrorMessage?: ((req: IM, res: SR, error: Error) => string) | undefined;

I'd like to make use of the 4th argument "responseTime" in my logging message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions