diff --git a/bondfetch.js b/bondfetch.js index 2841f92..1436ef9 100644 --- a/bondfetch.js +++ b/bondfetch.js @@ -25,7 +25,7 @@ const bondFetchProcess = async (url) => { var t1 = await BondData.json(); } catch (e) { tgBot.sendMessage(tgInfo.debugChat, `ERROR: fetching bonds:\n${e}`); - console.error(e); + throw e; } for (let data in t1) { if (t1[data].interest > 0.7 && !knownBonds.includes(t1[data].id)) {