The default error handler assumed that the request context would be present. Where errors are thrown by Express middleware, the request context was not yet present resulting in errors not being properly logged.
Changes:
the default error handler checks for the presence of the request context, and adds a minimal context if it is not present.
Description & motivation
The default error handler assumed that the request context would be present. Where errors are thrown by Express middleware, the request context was not yet present resulting in errors not being properly logged.
Changes:
To-do before merge:
Screenshots:
Validation of changes:
Checklist:
References