Skip to content

Commit

Permalink
Update responseHandlers.js
Browse files Browse the repository at this point in the history
instead of breaking changes, send redundant keys
  • Loading branch information
ankitboghra authored Mar 8, 2024
1 parent 10426c6 commit 31ec4dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helpers/responseHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
}) => {
res.status(statusCode).send({
errMsg,
msg: err instanceof Error ? err.message : err.msg || err,
message: err instanceof Error ? err.message : err.msg || err
})
},
Expand All @@ -31,6 +32,7 @@ module.exports = {
}) => {
res.status(statusCode).send({
error: true,
msg: err instanceof Error ? err.message : errMsg || err,
message: err instanceof Error ? err.message : errMsg || err
})
},
Expand Down

0 comments on commit 31ec4dd

Please sign in to comment.