##// END OF EJS Templates
vcs: add nicer traceback information for curl errors.
marcink -
r2940:1dfdca3b default
parent child Browse files
Show More
@@ -28,6 +28,7 b' import threading'
28 28 import urllib2
29 29 import urlparse
30 30 import uuid
31 import traceback
31 32
32 33 import pycurl
33 34 import msgpack
@@ -197,7 +198,8 b' def _remote_call(url, payload, exception'
197 198 try:
198 199 response = session.post(url, data=msgpack.packb(payload))
199 200 except pycurl.error as e:
200 raise exceptions.HttpVCSCommunicationError(e)
201 msg = '{}. pycurl traceback: {}'.format(e, traceback.format_exc())
202 raise exceptions.HttpVCSCommunicationError(msg)
201 203 except Exception as e:
202 204 message = getattr(e, 'message', '')
203 205 if 'Failed to connect' in message:
General Comments 0
You need to be logged in to leave comments. Login now