Skip to content

Commit

Permalink
fix(inline): log errors and continue
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Feb 13, 2021
1 parent 7cbcaae commit 68588a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ export async function inlineResources(element: Element): Promise<void> {
console.error('Error inlining stylesheet', element.sheet, error)
}
}
})(),
})().catch(error => {
console.error('Error inlining resource for element', element, error)
}),
])
}

Expand Down

0 comments on commit 68588a4

Please sign in to comment.