Skip to content

Commit 337ca50

Browse files
authored
Forward Svelte client error (#9530)
1 parent 662f06f commit 337ca50

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/great-parrots-raise.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/svelte': patch
3+
---
4+
5+
Forwards errors if a Svelte component fails to instantiate in the client

packages/integrations/svelte/client.js

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export default (element) => {
2626
});
2727

2828
element.addEventListener('astro:unmount', () => component.$destroy(), { once: true });
29-
} catch (e) {
3029
} finally {
3130
if (import.meta.env.DEV) finishUsingConsoleFilter();
3231
}

0 commit comments

Comments
 (0)