Express error handling middleware that captures exceptions and enriches them with request data.
An Express error handling middleware function
import express from "express";import { gchatExpress } from "@gchat-notifier/node";const app = express();// ... routesapp.use(gchatExpress()); // Must be after all routes Copy
import express from "express";import { gchatExpress } from "@gchat-notifier/node";const app = express();// ... routesapp.use(gchatExpress()); // Must be after all routes
Express error handling middleware that captures exceptions and enriches them with request data.