From 13ee4644f7c624541744f59250ba84dbf836544e Mon Sep 17 00:00:00 2001 From: Andres Pineda Date: Wed, 4 Dec 2024 00:16:26 -0500 Subject: [PATCH] chore: log service worker init error --- src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts b/src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts index af2a3d3c5..d9c38292f 100644 --- a/src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts +++ b/src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts @@ -530,7 +530,11 @@ namespace Uno.WebAssembly.Bootstrap { }) .then(function () { console.debug('Service Worker Registered'); - }); + }) + .catch(function(error) { + console.error('Error while registering service worker', error); + throw error; + }); } } }