From 8f8ec993bbdbd47bed79b6d4653cd8a5933cf5be Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 8 Nov 2007 22:09:47 +0000 Subject: [PATCH] Attempt to clean up the error messages svn path=/main/branches/prefix/; revision=8465 --- pym/portage/getbinpkg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.26.2