Skip to content

Commit 26331b6

Browse files
committed
refactor: change error message
1 parent dc8c194 commit 26331b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/datasketches/sampling/VarOptItemsSketch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ void update(final T item, final double weight, final boolean mark) {
828828
return;
829829
}
830830
if (weight <= 0.0 || Double.isNaN(weight) || Double.isInfinite(weight)) {
831-
throw new SketchesArgumentException("Item weights must be strictly positive: "
831+
throw new SketchesArgumentException("Item weights must be strictly positive and finite number: "
832832
+ weight + ", for item " + item.toString());
833833
}
834834
++n_;

0 commit comments

Comments
 (0)