@ -75,8 +75,8 @@
if(nconf.get('mongo:password') && nconf.get('mongo:username')) {
db.authenticate(nconf.get('mongo:username'), nconf.get('mongo:password'), function (err) {
if(err) {
winston.error(err.message);
if (err) {
winston.error(err.stack);
process.exit();
}
createIndices();
@ -14,7 +14,7 @@ module.exports = function(Meta) {
Meta.configs.list(function (err, config) {
winston.error(err);
return callback(err);
@ -83,7 +83,7 @@ Templates.compile = function(callback) {
fs.writeFile(path.join(viewsPath, relativePath), file, next);
}, function(err) {
winston.error('[themes] ' + err.stack);
} else {
winston.info('[themes] Successfully compiled templates.');
emitter.emit('templates:compiled');
@ -46,7 +46,7 @@ var async = require('async'),
user.getUserField(uid, 'username', function(err, username) {
return winston.error(err.message);
return winston.error(err.stack);
var title = meta.config.title || meta.config.browserTitle || 'NodeBB';