Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r12596 r12620 21 21 import org.openstreetmap.josm.io.auth.CredentialsManager; 22 22 import org.openstreetmap.josm.tools.HttpClient; 23 import org.openstreetmap.josm.tools.Logging; 23 24 import org.openstreetmap.josm.tools.Utils; 24 25 import org.openstreetmap.josm.tools.XmlParsingException; … … 48 49 doAuthenticate = OsmApi.isUsingOAuth() && CredentialsManager.getInstance().lookupOAuthAccessToken() != null; 49 50 } catch (CredentialsAgentException e) { 50 Main.warn(e);51 Logging.warn(e); 51 52 } 52 53 } … … 186 187 response = client.connect(progressMonitor); 187 188 } catch (IOException e) { 188 Main.error(e);189 Logging.error(e); 189 190 OsmTransferException ote = new OsmTransferException( 190 191 tr("Could not connect to the OSM server. Please check your internet connection."), e); … … 221 222 return response.fetchContent(); 222 223 } catch (IOException e) { 223 Main.error(e);224 Logging.error(e); 224 225 return tr("Reading error text failed."); 225 226 }
Note:
See TracChangeset
for help on using the changeset viewer.