Commits

Éric Araujo committed 5491a99

Make error message from resolve_name more useful for debugging

Comments (0)

Files changed (1)

distutils2/util.py

     for part in parts[1:]:
         try:
             ret = getattr(ret, part)
-        except AttributeError:
-            raise ImportError
+        except AttributeError, exc:
+            raise ImportError(exc)
 
     return ret