From 399dab4d7790c4e1e1222d987736d7a5e95ed0c9 Mon Sep 17 00:00:00 2001 From: Yago Date: Mon, 1 Feb 2016 22:19:56 +0100 Subject: [PATCH] throw error on polling --- src/telegramPolling.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/telegramPolling.js b/src/telegramPolling.js index 2563e1c..7cec903 100644 --- a/src/telegramPolling.js +++ b/src/telegramPolling.js @@ -40,6 +40,7 @@ TelegramBotPolling.prototype._polling = function () { }.bind(this)) .catch(function (err) { debug('polling error: %j', err); + throw err; }) .finally(function () { if (this.abort) {