Not sure whether this is more a general JS question than Mongoose per se, but what is the function that provides the "err" argument in the code below?
//Save a new cat called "Thomas" to the "Cats" collection
Thomas.save( function(err, cat) {
if (err){
console.log("Cat not saved")
} else {
console.log("Saved")
}
})