fix false positive for error handler
This commit is contained in:
parent
4001e756cb
commit
1f4d0888ad
@ -34,7 +34,9 @@ const sendChannelMessage = function (ctx, channel, msgStruct) {
|
|||||||
});
|
});
|
||||||
if (USE_HISTORY_KEEPER && msgStruct[2] === 'MSG') {
|
if (USE_HISTORY_KEEPER && msgStruct[2] === 'MSG') {
|
||||||
ctx.store.message(channel.id, JSON.stringify(msgStruct), function (err) {
|
ctx.store.message(channel.id, JSON.stringify(msgStruct), function (err) {
|
||||||
if (err) {
|
if (err && typeof(err) !== 'function') {
|
||||||
|
// ignore functions because older datastores
|
||||||
|
// might pass waitFors into the callback
|
||||||
console.log("Error writing message: " + err);
|
console.log("Error writing message: " + err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user