Changeset 13631 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-04-15T14:11:59+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
r13449 r13631 35 35 import org.openstreetmap.josm.tools.HttpClient; 36 36 import org.openstreetmap.josm.tools.Logging; 37 import org.openstreetmap.josm.tools.Utils; 37 38 38 39 /** … … 45 46 private static final LongProperty MAXIMUM_EXPIRES = new LongProperty("imagery.generic.maximum_expires", TimeUnit.DAYS.toMillis(30)); 46 47 private static final LongProperty MINIMUM_EXPIRES = new LongProperty("imagery.generic.minimum_expires", TimeUnit.HOURS.toMillis(1)); 47 private static final Pattern SERVICE_EXCEPTION_PATTERN = Pattern.compile("(?s).+<ServiceException>(.+)</ServiceException>.+");48 static final Pattern SERVICE_EXCEPTION_PATTERN = Pattern.compile("(?s).+<ServiceException[^>]*>(.+)</ServiceException>.+"); 48 49 protected final Tile tile; 49 50 private volatile URL url; … … 280 281 Matcher m = SERVICE_EXCEPTION_PATTERN.matcher(s); 281 282 if (m.matches()) { 282 tile.setError(m.group(1)); 283 Logging.error(m.group(1)); 283 String message = Utils.strip(m.group(1)); 284 tile.setError(message); 285 Logging.error(message); 284 286 Logging.debug(s); 285 287 } else {
Note:
See TracChangeset
for help on using the changeset viewer.