From: Fabian Groffen Date: Thu, 8 Nov 2007 22:09:47 +0000 (-0000) Subject: Attempt to clean up the error messages X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8f8ec993bbdbd47bed79b6d4653cd8a5933cf5be;p=portage.git Attempt to clean up the error messages svn path=/main/branches/prefix/; revision=8465 --- diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py index 4261d7c78..3dbdbf028 100644 --- a/pym/portage/getbinpkg.py +++ b/pym/portage/getbinpkg.py @@ -237,7 +237,7 @@ def make_http_request(conn, address, params={}, headers={}, dest=None): break if (rc != 200) and (rc != 206): - return None,rc,"Server did not respond successfully ("+str(response.status)+": "+str(response.reason)+")" + return None,rc,address+": "+str(response.status)+" "+str(response.reason) if dest: dest.write(response.read()) @@ -308,7 +308,7 @@ def dir_get_list(baseurl,conn=None): del page listing = parser.get_anchors() else: - raise Exception, "Unable to get listing: %s %s" % (rc,msg) + raise Exception, "Unable to get listing: %s" % msg elif protocol in ["ftp"]: if address[-1] == '/': olddir = conn.pwd()