Ignore:
Timestamp:
2018-12-23T09:51:45+01:00 (5 years ago)
Author:
GerdP
Message:

see #15774: Add robustness for typos in ignoretags.cfg

Before a simple typo in ignoretags.cfg stopped the initializePresets() method and thus TagChecker did not do much

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java

    r14585 r14594  
    226226                            continue;
    227227                        }
    228 
     228                        try {
    229229                        String key = line.substring(0, 2);
    230230                        line = line.substring(2);
     
    247247                                Logging.warn("Unsupported TagChecker key: " + key);
    248248                            }
     249                        }
     250                        } catch (IllegalArgumentException e) {
     251                            Logging.error("Invalid line in {0} : {1}",source, e.getMessage());
    249252                        }
    250253                    } else if (tagcheckerfile) {
Note: See TracChangeset for help on using the changeset viewer.