From 2dccffc28259e9b5328a04518b7527a5f5a967a7 Mon Sep 17 00:00:00 2001 From: PG Herveou Date: Thu, 24 Feb 2022 19:23:33 +0100 Subject: [PATCH 1/2] Update cache.js --- lib/cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cache.js b/lib/cache.js index 65e9d30..e49601c 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -185,7 +185,7 @@ module.exports = class Cache { const { latest, refreshCache, isOutdated, lastUpdate } = this if (!lastUpdate || isOutdated()) { - await refreshCache() + await refreshCache().catch((error) => console.log(error)) } return Object.assign({}, latest) From 487a29dc470a135f744343d3d13cdc1910ef7274 Mon Sep 17 00:00:00 2001 From: PG Herveou Date: Thu, 24 Feb 2022 19:42:38 +0100 Subject: [PATCH 2/2] Update cache.js --- lib/cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cache.js b/lib/cache.js index e49601c..17462c7 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -185,7 +185,7 @@ module.exports = class Cache { const { latest, refreshCache, isOutdated, lastUpdate } = this if (!lastUpdate || isOutdated()) { - await refreshCache().catch((error) => console.log(error)) + await refreshCache().catch((error) => console.error(error)) } return Object.assign({}, latest)