mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
show stack
This commit is contained in:
@@ -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) {
|
||||
if (err) {
|
||||
winston.error(err);
|
||||
winston.error(err.stack);
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ Templates.compile = function(callback) {
|
||||
fs.writeFile(path.join(viewsPath, relativePath), file, next);
|
||||
}, function(err) {
|
||||
if (err) {
|
||||
winston.error(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) {
|
||||
if (err) {
|
||||
return winston.error(err.message);
|
||||
return winston.error(err.stack);
|
||||
}
|
||||
|
||||
var title = meta.config.title || meta.config.browserTitle || 'NodeBB';
|
||||
|
||||
Reference in New Issue
Block a user