Error HandlerAPI
API
Last updated:
API Reference
createErrorHandler(options?)
Create error handling middleware.
Options:
debug(boolean): Show stack traceslog(boolean): Enable logginglogger(object): Custom loggerformatError(function): Custom formatter
Returns: Express/Connect middleware function