I have this ExpressJS route for saving and listing Category model.exports.save = function(req, res, next){  //validate here>>>  var name = req.body.name;  var description = req.body.description;  new Category({    name: name,    description: description,  }).save(function(err, docs){    if ( err ) {      console.log('error: saving category');      next(error);    }else{      console.log('category saved.');      res.redirect('categories');    }  });}exports.list = function(req, res, next){  Category.find(function ( err, categories, count ){    if (err) {      console.log('error: listing categories');      next(error);    }    res.render( 'categories/list', {        categories : categories    });  }); }Is having console.log and next(error) OK?  How could I improve the above code in terms of conventions in NodeJS / ExpressJS?
Saving and listing Category model
javascript;error handling;mongodb;express.js