Changeset 8389 in josm for trunk/src/org/openstreetmap/josm/data/imagery
- Timestamp:
- 2015-05-17T22:48:00+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
r8344 r8389 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.imagery; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.io.ByteArrayInputStream; … … 273 275 } 274 276 } 277 int httpStatusCode = attributes.getResponseCode(); 278 if (!isNoTileAtZoom() && httpStatusCode >= 400) { 279 tile.setError(tr("HTTP error {0} when loading tiles", httpStatusCode)); 280 } 275 281 // no break intentional here 276 282 case REJECTED: … … 313 319 tile.finishLoading(); 314 320 } 321 if (attributes.getResponseCode() >= 400) { 322 tile.setError(tr("HTTP error {0} when loading tiles", attributes.getResponseCode())); 323 } 315 324 return tile; 316 325 } catch (IOException e) {
Note:
See TracChangeset
for help on using the changeset viewer.