mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Add stack dump on error
This commit is contained in:
parent
3b21e18b16
commit
2c7e4a4f67
1 changed files with 7 additions and 1 deletions
|
@ -125,6 +125,7 @@ exports.onUserJoin = function(bot) {
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
console.log('could not send dm');
|
console.log('could not send dm');
|
||||||
|
console.log(error);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -194,6 +195,7 @@ exports.welcome = {
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
console.log('could not send dm');
|
console.log('could not send dm');
|
||||||
|
console.log(error);
|
||||||
});
|
});
|
||||||
msg.mentions.members
|
msg.mentions.members
|
||||||
.first()
|
.first()
|
||||||
|
@ -216,6 +218,7 @@ exports.welcome = {
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
console.log('could not send dm');
|
console.log('could not send dm');
|
||||||
|
console.log(error);
|
||||||
});
|
});
|
||||||
msg.mentions.members
|
msg.mentions.members
|
||||||
.first()
|
.first()
|
||||||
|
@ -235,6 +238,7 @@ exports.welcome = {
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
console.log('could not send dm');
|
console.log('could not send dm');
|
||||||
|
console.log(error);
|
||||||
});
|
});
|
||||||
msg.mentions.members
|
msg.mentions.members
|
||||||
.first()
|
.first()
|
||||||
|
@ -253,7 +257,8 @@ exports.welcome = {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(console.error)
|
.catch(console.error)
|
||||||
.then(console.log('could not send dm'));
|
console.log('could not send dm');
|
||||||
|
console.log(error);
|
||||||
msg.mentions.members
|
msg.mentions.members
|
||||||
.first()
|
.first()
|
||||||
.send({
|
.send({
|
||||||
|
@ -272,6 +277,7 @@ exports.welcome = {
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
console.log('could not send dm');
|
console.log('could not send dm');
|
||||||
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue