From 92f892a4673a9746ca4eba2122cce7b8c9da11dc Mon Sep 17 00:00:00 2001 From: Laurynas Karvelis Date: Mon, 5 Feb 2018 16:33:45 +0200 Subject: [PATCH] Do not try to eat up request errors with catch as this will break rejection chain --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c810269..2710b06 100644 --- a/src/index.js +++ b/src/index.js @@ -138,7 +138,7 @@ export default class Bot extends EventEmitter { * @return {unknown} returns the result of calling message's send method */ send(message) { - return message.send(this).catch(console.error); + return message.send(this); } /**