http transport should tell user if host is unknown rather than saying "not a branch"
Bug #41436 reported by
Michael Ellerman
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Vincent Ladeuil |
Bug Description
When pulling (and presumably doing other operations) over http, the non-existance of a host is reported as "not a branch", this can be rather confusing, eg:
concordia ~/test$ bzr pull http://
bzr: ERROR: Not a branch: http://
The message sends me off to check that I got the path right, which I did, I then pull my hair out for five minutes before realising I've actually got the host name wrong!
To post a comment you must log in.
We now get ConnectionError, which is better, though the error is still slightly confusing.
Leaving this bug open, because I think we can do better, but decreasing its priority.
This is the current errors: nohost/ foo/bar nohost/ foo/bar/ .bzr/branch- format //nohost/ foo/bar //nohost/ foo/bar/ .bzr/branch- format: <urlopen error (-2, 'Name or service not known')> <urlopen error (-2, 'Name or service not known')>
% bzr branch http://
bzr: ERROR: Connection error: curl connection error (Success) on http://
% bzr branch http+urllib:
bzr: ERROR: Connection error: Error retrieving http+urllib: