Changeset 6248 in josm for trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
- Timestamp:
- 2013-09-23T16:47:50+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r6093 r6248 123 123 layersIndex.load(fis); 124 124 } catch (FileNotFoundException e) { 125 System.out.println("Unable to load layers index for wms cache (file " + layerIndexFile + " not found)");125 Main.error("Unable to load layers index for wms cache (file " + layerIndexFile + " not found)"); 126 126 } catch (IOException e) { 127 System.err.println("Unable to load layers index for wms cache");127 Main.error("Unable to load layers index for wms cache"); 128 128 e.printStackTrace(); 129 129 } … … 151 151 layersIndex.store(fos, ""); 152 152 } catch (IOException e) { 153 System.err.println("Unable to save layer index for wms cache");153 Main.error("Unable to save layer index for wms cache"); 154 154 e.printStackTrace(); 155 155 } … … 187 187 totalFileSize = cacheEntries.getTotalFileSize(); 188 188 if (cacheEntries.getTileSize() != tileSize) { 189 System.out.println("Cache created with different tileSize, cache will be discarded");189 Main.info("Cache created with different tileSize, cache will be discarded"); 190 190 return; 191 191 } … … 202 202 if (indexFile.exists()) { 203 203 e.printStackTrace(); 204 System.out.println("Unable to load index for wms-cache, new file will be created");204 Main.info("Unable to load index for wms-cache, new file will be created"); 205 205 } else { 206 System.out.println("Index for wms-cache doesn't exist, new file will be created");206 Main.info("Index for wms-cache doesn't exist, new file will be created"); 207 207 } 208 208 } … … 297 297 marshaller.marshal(index, new FileOutputStream(new File(cacheDir, INDEX_FILENAME))); 298 298 } catch (Exception e) { 299 System.err.println("Failed to save wms-cache file");299 Main.error("Failed to save wms-cache file"); 300 300 e.printStackTrace(); 301 301 } … … 364 364 return loadImage(projectionEntries, entry); 365 365 } catch (IOException e) { 366 System.err.println("Unable to load file from wms cache");366 Main.error("Unable to load file from wms cache"); 367 367 e.printStackTrace(); 368 368 return null;
Note:
See TracChangeset
for help on using the changeset viewer.