MCPcopy
hub / github.com/nestjs/nest / errorHandler

Method errorHandler

packages/core/nest-application.ts:306–309  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

304 const httpAdapterHost = this.container.getHttpAdapterHostRef();
305 return new Promise((resolve, reject) => {
306 const errorHandler = (e: any) => {
307 this.logger.error(e?.toString?.());
308 reject(e);
309 };
310 this.httpServer.once('error', errorHandler);
311
312 const isCallbackInOriginalArgs = isFunction(args[args.length - 1]);

Callers 1

replyMethod · 0.45

Calls 2

errorMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected