mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 03:27:01 +02:00
Provide more error information to logs
Provides full stack instead of just message
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user