show more lines in stack

This commit is contained in:
Barış Soner Uşaklı
2018-11-10 21:08:04 -05:00
parent b6771836cf
commit 485fbf7386
2 changed files with 2 additions and 5 deletions

View File

@@ -284,14 +284,11 @@ module.exports = function (Groups) {
};
Groups.isMemberOfGroupsList = function (uid, groupListKeys, callback) {
var sets = groupListKeys.map(function (groupName) {
return 'group:' + groupName + ':members';
});
var uniqueGroups;
var members;
async.waterfall([
function (next) {
const sets = groupListKeys.map(groupName => 'group:' + groupName + ':members');
db.getSortedSetsMembers(sets, next);
},
function (_members, next) {

View File

@@ -45,7 +45,7 @@ module.require = function (p) {
// if we can't find the module try in parent directory
// since plugins.js moved into plugins folder
if (err.code === 'MODULE_NOT_FOUND') {
winston.warn('[plugins/require] ' + err.message + ', please update your plugin!\n' + err.stack.split('\n')[5]);
winston.warn('[plugins/require] ' + err.message + ', please update your plugin!\n' + err.stack.split('\n').slice(4, 7).join('\n'));
if (path.isAbsolute(p)) {
throw err;
}