Skip to content

Commit

Permalink
logging errors when updating issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanmtz committed Jun 24, 2024
1 parent fdd0fbb commit c273ea8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/app/controllers/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ exports.updateTask = (req, res) => {
.then(data => {
res.send(data)
}).catch(error => {
// eslint-disable-next-line no-console
console.log('error on update issue', error)
res.status(400).send(error)
})
}
Expand All @@ -63,7 +65,7 @@ exports.paymentTask = (req, res) => {
// eslint-disable-next-line no-console
console.log('error on task controller', error)
// eslint-disable-next-line no-console
console.log('error raw', error.raw)
console.log('error raw', error)
res.send({ error: error.raw })
})
}
Expand Down

0 comments on commit c273ea8

Please sign in to comment.