From 00b5ff017e8542b2a8288a4db704378dc1a8700c Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Tue, 13 Jan 2015 16:54:20 +0200 Subject: [PATCH] updated to return the req.send() to be consistent with the rest of our codebase --- app/controllers/articles.server.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/articles.server.controller.js b/app/controllers/articles.server.controller.js index 08661f46..8eb757bc 100644 --- a/app/controllers/articles.server.controller.js +++ b/app/controllers/articles.server.controller.js @@ -98,7 +98,7 @@ exports.articleByID = function(req, res, next, id) { Article.findById(id).populate('user', 'displayName').exec(function(err, article) { if (err) return next(err); if (!article) { - res.status(404).send({ + return res.status(404).send({ message: 'Article not found' }); }