Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fixing err object which isnt present in this check, replacing it with…
Browse files Browse the repository at this point in the history
… a text message
  • Loading branch information
lirantal committed Jul 3, 2015
1 parent 834bfd6 commit 52fe443
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ exports.articleByID = function(req, res, next, id) {

if (!mongoose.Types.ObjectId.isValid(id)) {
return res.status(400).send({
message: errorHandler.getErrorMessage(err)
message: 'Article is invalid'
});
}

Expand Down

0 comments on commit 52fe443

Please sign in to comment.