Skip to content

Commit

Permalink
Send error object
Browse files Browse the repository at this point in the history
* Add error object to response
  • Loading branch information
Elkrival committed May 31, 2024
1 parent 60b7cb5 commit 1b6ec58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ app.get('/*', async (req, res, next) => {
app.use(function (err, _req, res, _) {
console.error(err)

return res.send(err)
return res.send({ error: err.message })
})

export default app

0 comments on commit 1b6ec58

Please sign in to comment.