Changeset 63 in josm for src/org/openstreetmap
- Timestamp:
- 2006-03-16T00:30:49+01:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/OsmServerWriter.java
r61 r63 167 167 OsmWriter.outputSingle(out, osm, true); 168 168 out.close(); 169 170 StringWriter o = new StringWriter();171 OsmWriter.outputSingle(o, osm, true);172 System.out.println(o.getBuffer().toString());173 169 } 174 170 … … 179 175 String retMsg = con.getResponseMessage(); 180 176 con.disconnect(); 181 if (retCode != 200) 177 if (retCode == 410 && requestMethod.equals("DELETE")) 178 return; // everything fine.. was already deleted. 179 if (retCode != 200) { 180 StringWriter o = new StringWriter(); 181 OsmWriter.outputSingle(o, osm, true); 182 System.out.println(o.getBuffer().toString()); 182 183 throw new RuntimeException(retCode+" "+retMsg); 184 } 183 185 } catch (UnknownHostException e) { 184 186 throw new RuntimeException("Unknown host: "+e.getMessage(), e);
Note:
See TracChangeset
for help on using the changeset viewer.