Changeset 6248 in josm for trunk/src/org/openstreetmap/josm/io/OsmApi.java
- Timestamp:
- 2013-09-23T16:47:50+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r6070 r6248 229 229 version = "0.6"; 230 230 } else { 231 System.err.println(tr("This version of JOSM is incompatible with the configured server."));232 System.err.println(tr("It supports protocol version 0.6, while the server says it supports {0} to {1}.",231 Main.error(tr("This version of JOSM is incompatible with the configured server.")); 232 Main.error(tr("It supports protocol version 0.6, while the server says it supports {0} to {1}.", 233 233 capabilities.get("version", "minimum"), capabilities.get("version", "maximum"))); 234 234 initialized = false; // FIXME gets overridden by next assignment … … 256 256 for (Layer l : Main.map.mapView.getLayersOfType(ImageryLayer.class)) { 257 257 if (((ImageryLayer) l).getInfo().isBlacklisted()) { 258 System.out.println(tr("Removed layer {0} because it is not allowed by the configured API.", l.getName()));258 Main.info(tr("Removed layer {0} because it is not allowed by the configured API.", l.getName())); 259 259 Main.main.removeLayer(l); 260 260 } … … 548 548 } catch (InterruptedException ex) {} 549 549 } 550 System.out.println(tr("OK - trying again."));550 Main.info(tr("OK - trying again.")); 551 551 } 552 552 … … 628 628 629 629 activeConnection.connect(); 630 System.out.println(activeConnection.getResponseMessage());630 Main.info(activeConnection.getResponseMessage()); 631 631 int retCode = activeConnection.getResponseCode(); 632 632 … … 634 634 if (retries-- > 0) { 635 635 sleepAndListen(retries, monitor); 636 System.out.println(tr("Starting retry {0} of {1}.", getMaxRetries() - retries,getMaxRetries()));636 Main.info(tr("Starting retry {0} of {1}.", getMaxRetries() - retries,getMaxRetries())); 637 637 continue; 638 638 } … … 666 666 if (activeConnection.getHeaderField("Error") != null) { 667 667 errorHeader = activeConnection.getHeaderField("Error"); 668 System.err.println("Error header: " + errorHeader);668 Main.error("Error header: " + errorHeader); 669 669 } else if (retCode != 200 && responseBody.length()>0) { 670 System.err.println("Error body: " + responseBody);670 Main.error("Error body: " + responseBody); 671 671 } 672 672 activeConnection.disconnect();
Note:
See TracChangeset
for help on using the changeset viewer.