fix[ux]: improve error message on failed imports#4409
fix[ux]: improve error message on failed imports#4409charles-cooper merged 8 commits intovyperlang:masterfrom
Conversation
|
should we add the |
this means if they try to import something like Line 87 in 296a071 |
yes, right now |
vyper/semantics/analysis/imports.py
Outdated
| node._metadata["import_info"] = ImportInfo( | ||
| alias, qualified_module_name, compiler_input, ast | ||
| ) | ||
| with tag_exceptions(node): |
There was a problem hiding this comment.
let's move this to the highest scope where we have access to node -- i think inside the loop body on line 108
What I did
Report file and line of an incorrect import as requested by #4408.
How I did it
Simply added the
nodeas argument toModuleNotFound.How to verify it
Test the error message contains the correct file.
Commit message
Description for the changelog
Cute Animal Picture