Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit 474854d

Browse files
committed
Rescue and log failed css retrievals
1 parent eeda693 commit 474854d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ const getCssFromLinks = css => {
3838

3939
const px = css.links.map(link => {
4040
const loc = normalizeLink(baseUrl, link)
41-
console.log(loc)
4241

43-
return got(loc).then(res => linkCss.push(res.body))
42+
return got(loc)
43+
.then(res => linkCss.push(res.body))
44+
.catch(console.log)
4445
})
4546

4647
return Promise.all(px)

0 commit comments

Comments
 (0)