diff --git a/bondfetch.js b/bondfetch.js index 1436ef9..76183c0 100644 --- a/bondfetch.js +++ b/bondfetch.js @@ -24,7 +24,7 @@ const bondFetchProcess = async (url) => { }); var t1 = await BondData.json(); } catch (e) { - tgBot.sendMessage(tgInfo.debugChat, `ERROR: fetching bonds:\n${e}`); + await tgBot.sendMessage(tgInfo.debugChat, `ERROR: fetching bonds:\n${e}`); throw e; } for (let data in t1) {