From 52fe4434290aebc152a561287966701ef9b61410 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Fri, 3 Jul 2015 10:48:06 +0300 Subject: [PATCH] fixing err object which isnt present in this check, replacing it with a text message --- .../articles/server/controllers/articles.server.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/articles/server/controllers/articles.server.controller.js b/modules/articles/server/controllers/articles.server.controller.js index d720196d45..8f063226f2 100644 --- a/modules/articles/server/controllers/articles.server.controller.js +++ b/modules/articles/server/controllers/articles.server.controller.js @@ -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' }); }