2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 13:27:44 +00:00

doc: Update ParseError message; error might not be from Telegram

This commit is contained in:
GochoMugo 2017-11-18 23:55:05 +03:00
parent ea420edad9
commit 772609c334
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4

View File

@ -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) {