From 5116dd213724a72084cbc9d394492120e1fc6a7d Mon Sep 17 00:00:00 2001 From: anarch3 Date: Sun, 20 Nov 2022 17:45:41 -0500 Subject: [PATCH] rework error --- app.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app.js b/app.js index 5059a75..23ff4d2 100644 --- a/app.js +++ b/app.js @@ -46,12 +46,6 @@ app.use("/", authRouter); app.use("/uploads", express.static("uploads")); -// error handler -app.use((err, req, res) => { - console.error(err.stack); - res.status(500).send("Something broke!"); -}); - function prune () { console.log("Vacuuming database..."); db.run("VACUUM");