From 772609c33497775bdcdde40cf9ac70cb37c72ad6 Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Sat, 18 Nov 2017 23:55:05 +0300 Subject: [PATCH] doc: Update ParseError message; error might not be from Telegram --- src/telegram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram.js b/src/telegram.js index 09891a3..f230d3b 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -250,7 +250,7 @@ class TelegramBot extends EventEmitter { try { data = resp.body = JSON.parse(resp.body); } catch (err) { - throw new errors.ParseError(`Error parsing Telegram response: ${resp.body}`, resp); + throw new errors.ParseError(`Error parsing response: ${resp.body}`, resp); } if (data.ok) {