Changeset 11297 in josm for trunk/src/org


Ignore:
Timestamp:
2016-11-23T23:39:36+01:00 (3 years ago)
Author:
simon04
Message:

see #13960 - Enhance exception message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java

    r11022 r11297  
    192192    protected synchronized void realAddLayer(Layer layer) {
    193193        if (containsLayer(layer)) {
    194             throw new IllegalArgumentException("Cannot add a layer twice.");
     194            throw new IllegalArgumentException("Cannot add a layer twice: " + layer);
    195195        }
    196196        LayerPositionStrategy positionStrategy = layer.getDefaultLayerPosition();
Note: See TracChangeset for help on using the changeset viewer.