verbose error messages

This commit is contained in:
Evert Prants 2020-01-08 12:12:36 +02:00
parent 256c43e6e7
commit 5807d28cd0
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -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 () {