Changeset 8607 in josm for trunk/src/org


Ignore:
Timestamp:
2015-07-16T21:55:32+02:00 (5 years ago)
Author:
wiktorn
Message:

fix error reporting when tiles were successfuly loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java

    r8606 r8607  
    289289                    tile.finishLoading();
    290290                }
    291                 if (attributes.getErrorMessage() == null) {
    292                     tile.setError(tr("HTTP error {0} when loading tiles", attributes.getResponseCode()));
    293                 } else {
    294                     tile.setError(tr("Error downloading tiles: {0}", attributes.getErrorMessage()));
     291                if (attributes.getResponseCode() >= 400) {
     292                    if (attributes.getErrorMessage() == null) {
     293                        tile.setError(tr("HTTP error {0} when loading tiles", attributes.getResponseCode()));
     294                    } else {
     295                        tile.setError(tr("Error downloading tiles: {0}", attributes.getErrorMessage()));
     296                    }
    295297                }
    296298                return tile;
Note: See TracChangeset for help on using the changeset viewer.