user unfriendly error message on extends download error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
if you have a configuration with an extends entry in the [buildout] section which points to a non-existing URL the result is not very user friendly:
While:
Initializing.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/Users/
user_defaults, windows_restart, command)
File "/Users/
data[
File "/Users/
_update(
File "/Users/
eresult = _open(base, extends.pop(0), seen, dl_options, override)
File "/Users/
path, is_temp = download(filename)
File "/Users/
local_path, is_temp = self.download_
File "/Users/
_, is_temp = self.download(url, md5sum, cached_path)
File "/Users/
tmp_path, headers = urllib.
File "/opt/local/
return _urlopener.
File "/opt/local/
fp = self.open(url, data)
File "/opt/local/
return getattr(self, name)(url)
File "/opt/local/
return self.http_
File "/opt/local/
return self.http_
File "/opt/local/
raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 404, 'Not Found', <httplib.
As a user I would expect to see something like this:
While:
Initializing.
Error downloading extends for URL http//example.
Confirmed - happened for me when trying to upgrade to Plone 4.
The only way to get the actual URL out is to run buildout with -D switch and inspect the traceback in pdb afterwards.