Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
fix(cache): stop relying on BB.catch
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 4, 2017
1 parent 94a670d commit 2b04494
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,12 @@ module.exports = class Cache {
status: 200,
size: stat.size
})
}).catch({code: 'ENOENT'}, () => {
return null
}).catch(err => {
if (err.code === 'ENOENT') {
return null
} else {
throw err
}
})
}
})
Expand Down

0 comments on commit 2b04494

Please sign in to comment.