setting up error code with res replaced by console.log (#290)

* setting up error code with res replaced by console.log

* Update server.js
main
Adarsh Kumar Singh 7 years ago committed by Michael Fix
parent 6d34e52ade
commit 2a2a34593d

@ -18,6 +18,7 @@ function wrap(handler) {
return (req, res) => return (req, res) =>
handler(req, res).catch(err => { handler(req, res).catch(err => {
console.log('ERR:', err) console.log('ERR:', err)
res.status(400).end()
}) })
} }

Loading…
Cancel
Save