Log errors in addition to sending response

This commit is contained in:
Shadowfacts 2019-09-17 15:42:40 -04:00
parent 99637521d4
commit 6e785fb0a1
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ async function generate(): Promise<Page[]> {
app.use(express.static("out"));
app.use((err, req, res, next) => {
console.error("Unhandled error:", err);
res.status(500).sendFile("500.html", {
root: "out"
});