From 9c0446d416c9c7bc1528533a247ec3dafc48412b Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 28 May 2014 14:18:00 -0400 Subject: [PATCH] closes #1593 --- src/controllers/accounts.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js index cfedbf59b1..6957236cfe 100644 --- a/src/controllers/accounts.js +++ b/src/controllers/accounts.js @@ -136,9 +136,7 @@ accountsController.getAccount = function(req, res, next) { } if(!userData) { - return res.json(404, { - error: 'User not found!' - }); + return userNotFound(res); } user.isFollowing(callerUID, userData.theirid, function (err, isFollowing) {