wait for error send before exit
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user