mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
Handle callback errors
This commit is contained in:
@@ -49,6 +49,10 @@ homePageController.get = function(req, res, next) {
|
||||
name: 'Popular'
|
||||
}
|
||||
].concat(categoryData)}, function(err, data) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
data.routes.push({
|
||||
route: '',
|
||||
name: 'Custom'
|
||||
|
||||
Reference in New Issue
Block a user