From sfalcon at fhcrc.org  Tue Apr 26 05:30:37 2005
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Tue Apr 26 05:30:49 2005
Subject: [Rd] Feature request: report the url if 404 error occurs
Message-ID: <m2ll76rz8i.fsf@fhcrc.org>

Currently, the connection code does not include the URL in the warning
message when a 404 response is received:

myUrl = "http://www.r-project.org/ABadPage.html"
con = url(myUrl)
readLines(con)

  Error in readLines(con) : cannot open the connection
  In addition: Warning message:
  cannot open: HTTP status was '404 Not Found' 

Would it be possible (and desirable) to include the URL in the warning
message?  Here's an example:

Error in readLines(con) : cannot open the connection
In addition: Warning message:
cannot open 'http://www.r-project.org/ABadPage.html': HTTP status was '404 Not Found' 


+ seth


[Rd] Feature request: report the url if 404 error occurs
Seth Falcon