Attempt to clean up the error messages
authorFabian Groffen <grobian@gentoo.org>
Thu, 8 Nov 2007 22:09:47 +0000 (22:09 -0000)
committerFabian Groffen <grobian@gentoo.org>
Thu, 8 Nov 2007 22:09:47 +0000 (22:09 -0000)
svn path=/main/branches/prefix/; revision=8465

pym/portage/getbinpkg.py

index 4261d7c785a7a3b2da6b9836097518ac42a6f725..3dbdbf0289e6680b21e41a2a5c15344a2ffe5846 100644 (file)
@@ -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()