Skip to content

Commit 753e9d7

Browse files
committed
feedback
1 parent 62001de commit 753e9d7

File tree

1 file changed

+3
-3
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+3
-3
lines changed

packages/svelte/src/internal/client/dom/blocks/await.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ export function await_block(node, get_input, pending_fn, then_fn, catch_fn) {
131131
// but let's use internal_set for consistency and just to be safe
132132
internal_set(error_source, error);
133133
update(CATCH, true);
134-
if (!catch_fn && DEV) {
135-
// eslint-disable-next-line no-console
136-
console.error(error_source.v);
134+
if (!catch_fn) {
135+
// Rethrow the error if no catch block exists
136+
throw error_source.v;
137137
}
138138
}
139139
);

0 commit comments

Comments
 (0)