mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
http: print better error if exception happens.
This commit is contained in:
parent
b8bc35963b
commit
36e6b802b2
@ -106,7 +106,9 @@ class httprepository(remoterepository):
|
||||
try:
|
||||
resp = urllib2.urlopen(cu)
|
||||
except httplib.HTTPException, inst:
|
||||
raise IOError(None, _('http error while sending %s command') % cmd)
|
||||
self.ui.debug(_('http error while sending %s command\n') % cmd)
|
||||
self.ui.print_exc()
|
||||
raise IOError(None, inst)
|
||||
proto = resp.headers['content-type']
|
||||
|
||||
# accept old "text/plain" and "application/hg-changegroup" for now
|
||||
|
Loading…
Reference in New Issue
Block a user