Skip to content

Commit

Permalink
chore: add code comment explaining empty catch block (#12780)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Oct 9, 2024
1 parent 16568c2 commit 4c1e3c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/kit/src/exports/vite/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ export async function dev(vite, vite_config, svelte_config) {
function fix_stack_trace(error) {
try {
vite.ssrFixStacktrace(error);
} catch {}
} catch {
// ssrFixStacktrace can fail on StackBlitz web containers and we don't know why
// by ignoring it the line numbers are wrong, but at least we can show the error
}
return error.stack;
}

Expand Down

0 comments on commit 4c1e3c0

Please sign in to comment.