-
-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix[ux]: improve error message on failed imports (#4409)
Previously, when an import failed, the error message only displayed the paths that were attempted, but did not point to the specific import statement which caused the exception. To address this, we wrap the main node-handling loop in `ImportAnalyzer` with `tag_exception`, which propagates information with the specific line and file to the error message.
- Loading branch information
1 parent
d67e57c
commit 4507d2a
Showing
3 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters