verbose error messages
This commit is contained in:
parent
256c43e6e7
commit
5807d28cd0
@ -56,7 +56,7 @@ async function init () {
|
|||||||
|
|
||||||
app.use(function (err, req, res, next) {
|
app.use(function (err, req, res, next) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
res.status(500).end('Server error')
|
res.status(500).end(err.message)
|
||||||
})
|
})
|
||||||
|
|
||||||
app.listen(sock, function () {
|
app.listen(sock, function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user