- Timestamp:
- 2011-07-30T16:26:10+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java
r4262 r4278 298 298 String redirectLocation = con.getHeaderField("Location"); 299 299 if (downloadUrl == null) { 300 String msg = tr("Fatal: unexpected response from HTTP server. Got {0} response without 'Location' header. Can''t redirect. Aborting.", con.getResponseCode());300 /* I18n: argument is HTTP response code */ String msg = tr("Unexpected response from HTTP server. Got {0} response without ''Location'' header. Can''t redirect. Aborting.", con.getResponseCode()); 301 301 throw new IOException(msg); 302 302 } … … 306 306 numRedirects++; 307 307 if (numRedirects >= Main.pref.getInteger("socket.maxredirects", 5)) { 308 String msg = tr(" Fatal: too many redirects to the download URL detected. Aborting.");308 String msg = tr("Too many redirects to the download URL detected. Aborting."); 309 309 throw new IOException(msg); 310 310 } … … 312 312 break; 313 313 default: 314 String msg = tr(" Error: failed to read from ''{0}''. Server responded with status code {1}.", downloadUrl, con.getResponseCode());314 String msg = tr("Failed to read from ''{0}''. Server responded with status code {1}.", downloadUrl, con.getResponseCode()); 315 315 throw new IOException(msg); 316 316 }
Note:
See TracChangeset
for help on using the changeset viewer.