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(cli/graph_util): don't append referrer info for root module errors #17730

Merged
merged 2 commits into from
Feb 11, 2023

Conversation

nayeemrmn
Copy link
Collaborator

cc @dsherret This prevents graph_valid() from writing specifier locations for dynamic import errors whose runtime error stacks will give a similar location, regression in #17692. But it will still be added if the missing module is an indirect import, for example.

More generally, there's no reason to append referrer info to a graph validation error when the erroring module is one of the queried roots.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@dsherret
Copy link
Member

Seems like there's one more test to update.

@dsherret dsherret merged commit 13493d9 into denoland:main Feb 11, 2023
@nayeemrmn nayeemrmn deleted the graph-vaild-root-error-message branch February 11, 2023 19:36
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