Skip to content

Commit

Permalink
fix(repl): Go to Warning Position breaks non errors without a file (#514
Browse files Browse the repository at this point in the history
)

* Push

* Add changeset
  • Loading branch information
PuruVJ committed Jul 1, 2023
1 parent fc4e377 commit 7033ea5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-news-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/repl': patch
---

(fix) Go to Warning Position breaks non errors without a file
3 changes: 3 additions & 0 deletions packages/repl/src/lib/Repl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@
async function go_to_warning_pos(item) {
if (!item) return;
// If its a bundler error, can't do anything about it
if (!item.filename) return;
await handle_select(item.filename);
$module_editor?.focus();
Expand Down

2 comments on commit 7033ea5

@vercel
Copy link

@vercel vercel bot commented on 7033ea5 Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hn – ./sites/hn.svelte.dev

sites-zeta.vercel.app
hn.svelte.dev
hn-git-master-svelte.vercel.app
hn-svelte.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7033ea5 Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

repl – ./packages/repl

repl-git-master-svelte.vercel.app
repl-svelte.vercel.app
svelte-rappel.vercel.app
repl-zeta.vercel.app

Please sign in to comment.