Skip to content

Commit

Permalink
Merge pull request #232 from velosomarcus/fix-get-by-id-error
Browse files Browse the repository at this point in the history
Adding error message to response
  • Loading branch information
tysonrm authored Oct 31, 2022
2 parents 7421395 + baf1c75 commit 560b5c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/adapters/controllers/get-model-by-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export default function getModelByIdFactory (findModel) {
headers: {
'Content-Type': 'application/json'
},
statusCode: 404
statusCode: 404,
body: {
error: e.message
}
}
}

Expand Down

0 comments on commit 560b5c4

Please sign in to comment.