Provide more error information to logs

Provides full stack instead of just message
This commit is contained in:
Peter Jaszkowiak
2017-11-01 18:58:44 -06:00
parent ec38b18e34
commit e609e497b3
21 changed files with 59 additions and 60 deletions

View File

@@ -52,7 +52,7 @@ module.exports = function (Groups) {
hidden: 1,
}, function (err) {
if (err && err.message !== '[[error:group-already-exists]]') {
winston.error('[groups.join] Could not create new hidden group: ' + err.message);
winston.error('[groups.join] Could not create new hidden group', err);
return callback(err);
}
next();