Be more specific when reporting import errors
Currently, with code such as:
import Blahblah1 -- does not export foo
import Blahblah2 (foo)
bar = Blahblah1.foo
We simply get an error saying that Blahblah1 does not export foo. But we could do suggest more fine-grained information:
- suggest that the user might have mis-spelled
Blahblah2(as that module does exportfoo), - perhaps
Blahblah1defines foo but does not export it, so we could suggest thatfoobe added to the export list ofBlahblah1(perhaps only ifBlahblah1is from the current package).