Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clarify error message #526

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

fix: clarify error message #526

wants to merge 3 commits into from

Conversation

gtm-nayan
Copy link
Contributor

Without throwing, the error is only logged to the console and the banner shows another confusing error.

@vercel
Copy link

vercel bot commented Jul 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2023 4:00am
repl ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2023 4:00am

@gtm-nayan gtm-nayan marked this pull request as draft July 10, 2023 03:34
@@ -286,8 +286,7 @@ async function get_bundle(uid, mode, cache, local_files_lookup) {
if (importer && local_files_lookup.has(importer)) {
// relative import in a REPL file
// should've matched above otherwise importee doesn't exist
console.error(`Cannot find file "${importee}" imported by "${importer}" in the REPL`);
return;
throw new Error(`Cannot find file "${importee}" imported by "${importer}" in the REPL`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember I did it because the compiler was hanging fully on any error and refusing to re-run on typing. lemme check if this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants