error check

This commit is contained in:
Baris Soner Usakli
2014-01-17 18:11:36 -05:00
parent fd92d7b02a
commit e6a9f5a704

View File

@@ -295,6 +295,9 @@ var path = require('path'),
} }
topics.getTopicsByTids(tids, 0, 0, function (err, topics) { topics.getTopicsByTids(tids, 0, 0, function (err, topics) {
if (err){
return callback(err, null);
}
callback(null, topics); callback(null, topics);
}); });
}); });