Skip to content

Commit 18a3b52

Browse files
committed
Restore enum-style exception message expected by test
1 parent b523f3c commit 18a3b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-context/src/main/java/org/springframework/format/annotation/DurationFormat.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public static Unit fromChronoUnit(@Nullable ChronoUnit chronoUnit) {
211211
return candidate;
212212
}
213213
}
214-
throw new IllegalArgumentException("No matching Unit for ChronoUnit: " + chronoUnit.name());
214+
throw new IllegalArgumentException("No matching Unit for ChronoUnit." + chronoUnit.name());
215215
}
216216

217217
/**

0 commit comments

Comments
 (0)