diff --git a/src/main/java/org/joda/time/format/DateTimeFormat.java b/src/main/java/org/joda/time/format/DateTimeFormat.java index 89bb54d31..b3f7ab681 100644 --- a/src/main/java/org/joda/time/format/DateTimeFormat.java +++ b/src/main/java/org/joda/time/format/DateTimeFormat.java @@ -679,7 +679,7 @@ private static boolean isNumericToken(String token) { */ private static DateTimeFormatter createFormatterForPattern(String pattern) { if (pattern == null || pattern.length() == 0) { - throw new IllegalArgumentException("Invalid pattern specification"); + throw new IllegalArgumentException("Invalid pattern specification. Pattern is null or empty."); } DateTimeFormatter formatter = cPatternCache.get(pattern); if (formatter == null) {