pycurl error reporting problem
Bug #56676 reported by
Alex J. Champandard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Vincent Ladeuil |
Bug Description
The message from _pycurl.py in _raise_
File "lib/Bazaar-
self.
File "lib/Bazaar-
raise ConnectionError
ConnectionError: Connection error: curl connection error (0: No error) on http://
In the caller function though, the "mutter" of variable "e" is correct, and catches errors like:
got pycurl error: 6, CURLE_COULDNT_
Changed in bzr: | |
assignee: | nobody → v-ladeuil |
To post a comment you must log in.
I think the problem is that we use:
curl_errno = curl.getinfo( pycurl. OS_ERRNO) curl_errno)
and then
os.strerrno(
Which only can report errors that have a corresponding system errno.
It would be better for us to use the pycurl error object, as you mentioned.
This is a pretty small fix. Just change _raise_ curl_connection _error to take a error object and use that rather than the curl object.