Skip to content

Commit dd8cd7f

Browse files
author
lucaijun
committed
AJ-545: fix duration error prompt
1 parent fb5f6d6 commit dd8cd7f

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
@@ -196,7 +196,7 @@ private int getCodeNumber(String unit) {
196196
}
197197
return (codes[0] << 24) + (codes[1] << 16) + (codes[2] << 8) + codes[3];
198198
} else {
199-
throw new RuntimeException("error length of unit, " + unit.length());
199+
throw new RuntimeException(String.format("except duration enum type or length 4, got %s and length %d", unit, unit.length()));
200200
}
201201
}
202202
}

0 commit comments

Comments
 (0)