Skip to content

Commit

Permalink
Catch loadCache errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rastiqdev committed Jul 2, 2023
1 parent 85098f1 commit 1a233a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ module.exports = class Cache {
const { latest, refreshCache, isOutdated, lastUpdate } = this

if (!lastUpdate || isOutdated()) {
await refreshCache()
await refreshCache().catch((error) => console.error(error))
}

return Object.assign({}, latest)
Expand Down

0 comments on commit 1a233a9

Please sign in to comment.