diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java index 9f1850e4d..12f99c70e 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -122,7 +122,8 @@ public class FastDateParser implements DateParser, Serializable { Matcher patternMatcher= formatPattern.matcher(pattern); if(!patternMatcher.lookingAt()) { - throw new IllegalArgumentException("Invalid pattern"); + throw new IllegalArgumentException( + "Illegal pattern character '" + pattern.charAt(patternMatcher.regionStart()) + "'"); } currentFormatField= patternMatcher.group();