Changeset 3303 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-06-03T21:20:54+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r3140 r3303 164 164 try { 165 165 this.keyPattern = Pattern.compile(key, searchFlags); 166 } catch (PatternSyntaxException e) { 167 throw new ParseError(tr(rxErrorMsg, e.getPattern(), e.getIndex(), e.getMessage())); 168 } catch (Exception e) { 169 throw new ParseError(tr(rxErrorMsg, key, tr("<unknown>"), e.getMessage())); 170 } 171 try { 166 172 this.valuePattern = Pattern.compile(value, searchFlags); 167 173 } catch (PatternSyntaxException e) { 168 174 throw new ParseError(tr(rxErrorMsg, e.getPattern(), e.getIndex(), e.getMessage())); 175 } catch (Exception e) { 176 throw new ParseError(tr(rxErrorMsg, value, tr("<unknown>"), e.getMessage())); 169 177 } 170 178 this.key = key; … … 369 377 } catch (PatternSyntaxException e) { 370 378 throw new ParseError(tr(rxErrorMsg, e.getPattern(), e.getIndex(), e.getMessage())); 379 } catch (Exception e) { 380 throw new ParseError(tr(rxErrorMsg, s, tr("<unknown>"), e.getMessage())); 371 381 } 372 382 this.search = s;
Note:
See TracChangeset
for help on using the changeset viewer.