Skip to content

Commit f9ab070

Browse files
author
lucaijun
committed
AJ-545: fix duration error prompt
1 parent 0fa7dee commit f9ab070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/xxdb/data/BasicDuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private int getCodeNumber(String unit) {
182182
int[] codes = new int[4];
183183
for (int i = 0; i < 4; i++) {
184184
if (!Character.isUpperCase(unit.charAt(i)))
185-
throw new RuntimeException("except upper letter, got " + unit);
185+
throw new RuntimeException("The value of unit must duration enum type or contain four consecutive uppercase letters.");
186186
codes[i] = unit.charAt(i);
187187
}
188188
return (codes[0] << 24) + (codes[1] << 16) + (codes[2] << 8) + codes[3];

0 commit comments

Comments
 (0)