From ac27d775db2f2f51034086b6f947db55d5f19289 Mon Sep 17 00:00:00 2001 From: Oliver Boehlk Date: Thu, 14 May 2020 12:16:06 +0200 Subject: [PATCH] print error on error --- bondfetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bondfetch.js b/bondfetch.js index b793cc9..2f685a2 100644 --- a/bondfetch.js +++ b/bondfetch.js @@ -24,7 +24,7 @@ const bondFetchProcess = async (url) => { }); var t1 = await BondData.json(); } catch (e) { - console.warn("errs") + console.error(e); } for (let data in t1) { if (t1[data].interest > 0.7 && !knownBonds.includes(t1[data].id)) {