From 5807d28cd05adfa771f2ff567441f9b2e535e953 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Wed, 8 Jan 2020 12:12:36 +0200 Subject: [PATCH] verbose error messages --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 0e93d03..d4b2a31 100644 --- a/server.js +++ b/server.js @@ -56,7 +56,7 @@ async function init () { app.use(function (err, req, res, next) { console.error(err) - res.status(500).end('Server error') + res.status(500).end(err.message) }) app.listen(sock, function () {