[issue19257] Sub-optimal error message when importing a non-package

R. David Murray report at bugs.python.org
Fri Mar 14 14:01:25 CET 2014


R. David Murray added the comment:

Antoine: down that path lies Microsoft's "An error has occurred" error messages.  The point of the extra information is not to inform the end user, it is to make it possible for an expert to solve the problem, and for it to be findable in a web search.

Now, whether or not there are enough different things that the second error could be chained off of to make that worthwhile in this case is something Brett or Eric will have to answer.  My guess is that there *potentially* are, even though this one is the most common, but that's just a guess since I haven't studied importlib.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19257>
_______________________________________


More information about the Python-bugs-list mailing list