added err check

This commit is contained in:
barisusakli
2014-05-04 14:33:12 -04:00
parent aea8d50200
commit 6f40393b99
2 changed files with 5 additions and 1 deletions

View File

@@ -63,6 +63,10 @@ var async = require('async'),
}
user.getNameSlugPicture(topic.uid, function(err, userData) {
if (err) {
return callback(err);
}
topic.user = userData;
callback(err, topic);
});