Skip to content

Commit 1a233a9

Browse files
committed
Catch loadCache errors
From vercel#138
1 parent 85098f1 commit 1a233a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ module.exports = class Cache {
195195
const { latest, refreshCache, isOutdated, lastUpdate } = this
196196

197197
if (!lastUpdate || isOutdated()) {
198-
await refreshCache()
198+
await refreshCache().catch((error) => console.error(error))
199199
}
200200

201201
return Object.assign({}, latest)

0 commit comments

Comments
 (0)