From 68588a4e85f8c76f912c3b9351e53c71d5554099 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Sat, 13 Feb 2021 18:03:40 +0100 Subject: [PATCH] fix(inline): log errors and continue --- src/inline.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inline.ts b/src/inline.ts index 2f694ab0..f015d804 100644 --- a/src/inline.ts +++ b/src/inline.ts @@ -122,7 +122,9 @@ export async function inlineResources(element: Element): Promise { console.error('Error inlining stylesheet', element.sheet, error) } } - })(), + })().catch(error => { + console.error('Error inlining resource for element', element, error) + }), ]) }