Skip to content

Commit 2a9ebf4

Browse files
author
Bart Veneman
committed
log original error
1 parent c9cad8c commit 2a9ebf4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/v2/_extract-css-basic.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export async function extractCss(url) {
9898
body = response.body
9999
headers = response.headers
100100
} catch (error) {
101+
console.error(error)
101102
throw new HttpError({ url, statusCode, statusText })
102103
}
103104

@@ -137,8 +138,6 @@ export async function extractCss(url) {
137138
if (importUrls.length > 0) {
138139
var cssRequests = importUrls.map(
139140
importUrl => getCssFile(resolveUrl(importUrl, url))
140-
// silently fail on sub-resources
141-
.catch(_ => '')
142141
)
143142
var importedFiles = await Promise.all(cssRequests)
144143
importedFiles.map((css, index) => {

0 commit comments

Comments
 (0)