# HG changeset patch # User Marcin Kuzminski # Date 2018-08-03 20:24:46 # Node ID 1dfdca3b550ec0e6a9dc8a9b2056de351838adc0 # Parent 913f92bf5f3c91938251cb39020fd07a18755083 vcs: add nicer traceback information for curl errors. diff --git a/rhodecode/lib/vcs/client_http.py b/rhodecode/lib/vcs/client_http.py --- a/rhodecode/lib/vcs/client_http.py +++ b/rhodecode/lib/vcs/client_http.py @@ -28,6 +28,7 @@ import threading import urllib2 import urlparse import uuid +import traceback import pycurl import msgpack @@ -197,7 +198,8 @@ def _remote_call(url, payload, exception try: response = session.post(url, data=msgpack.packb(payload)) except pycurl.error as e: - raise exceptions.HttpVCSCommunicationError(e) + msg = '{}. pycurl traceback: {}'.format(e, traceback.format_exc()) + raise exceptions.HttpVCSCommunicationError(msg) except Exception as e: message = getattr(e, 'message', '') if 'Failed to connect' in message: