Changeset 1238 in josm


Ignore:
Timestamp:
2009-01-11T03:03:04+01:00 (16 years ago)
Author:
ulfl
Message:

explicit call connect, so we get a more detailed message if the internet connection is broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerReader.java

    r1222 r1238  
    5555
    5656        activeConnection.setConnectTimeout(15000);
     57       
     58        try {
     59            activeConnection.connect();
     60        }
     61        catch (Exception e) {
     62            throw new IOException(tr("Couldn't connect to the osm server. Please check your internet connection."));
     63        }
     64       
    5765        if (isAuthCancelled() && activeConnection.getResponseCode() == 401)
    5866            return null;
Note: See TracChangeset for help on using the changeset viewer.