aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJim Fulton <distutils-sig@python.org>2007-03-09 15:56:51 +0000
committerJim Fulton <distutils-sig@python.org>2007-03-09 15:56:51 +0000
commit89111e6143f3a9bb510433f529d4281681b7c66e (patch)
tree15b86e76d67a73b14db6d38a422bc9c4dcba408d /setuptools/package_index.py
parent08f3761c19825414ef0d33f584a667444ccb5523 (diff)
downloadexternal_python_setuptools-89111e6143f3a9bb510433f529d4281681b7c66e.tar.gz
external_python_setuptools-89111e6143f3a9bb510433f529d4281681b7c66e.tar.bz2
external_python_setuptools-89111e6143f3a9bb510433f529d4281681b7c66e.zip
Changed setuptools.package_index.PackageIndex.open_url to include the
url in the exception. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4054241
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index e4d7e6b9..e4f96f0b 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -581,7 +581,9 @@ class PackageIndex(Environment):
return v
except urllib2.URLError, v:
if warning: self.warn(warning, v.reason)
- else: raise DistutilsError("Download error: %s" % v.reason)
+ else:
+ raise DistutilsError("Download error for %s: %s"
+ % (url, v.reason))
def _download_url(self, scheme, url, tmpdir):
# Determine download filename