Changeset 14466 in josm


Ignore:
Timestamp:
2018-11-29T08:09:55+01:00 (11 months ago)
Author:
GerdP
Message:

see #17021 : fix unit test failure

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r14461 r14466  
    458458                Logging.error(e);
    459459                logError(new ParseException(e.getMessage())); // allow e to be garbage collected, it links to the entire token stream
     460            } catch (IllegalArgumentException e1) {
     461                final RuntimeException e = new JosmRuntimeException(e1.getMessage());
     462                Logging.warn(tr("Failed to parse Mappaint styles from ''{0}''. Error was: {1}", url, e.getMessage()));
     463                Logging.error(e);
     464                logError(e);
     465
    460466            }
    461467            if (metadataOnly) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r14462 r14466  
    44import static org.openstreetmap.josm.data.projection.Ellipsoid.WGS84;
    55
     6import java.text.MessageFormat;
    67import java.util.Collection;
    78import java.util.Collections;
     
    654655            case "setting": return BASE_SETTING;
    655656            default:
    656                 throw new IllegalArgumentException("unknown selector " + base);
     657                throw new IllegalArgumentException(MessageFormat.format("Unknown MapCSS base selector {0}", base));
    657658            }
    658659        }
Note: See TracChangeset for help on using the changeset viewer.