From 6e785fb0a18df3ac6a9e37543c9ea99b874b2b9f Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 17 Sep 2019 15:42:40 -0400 Subject: [PATCH] Log errors in addition to sending response --- lib/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.ts b/lib/index.ts index 02da734..52c919b 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -75,6 +75,7 @@ async function generate(): Promise { app.use(express.static("out")); app.use((err, req, res, next) => { + console.error("Unhandled error:", err); res.status(500).sendFile("500.html", { root: "out" });