Skip to content

Commit eb99606

Browse files
committed
Fix AbstractSubscription IllegalArgumentException error message
JAVA-2402
1 parent 79f4e6f commit eb99606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-async/src/main/com/mongodb/async/client/AbstractSubscription.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public boolean isUnsubscribed() {
6262
@Override
6363
public void request(final long n) {
6464
if (n < 1) {
65-
throw new IllegalArgumentException("Number requested cannot be negative: " + n);
65+
throw new IllegalArgumentException("Number requested must be > 0: " + n);
6666
}
6767

6868
boolean requestData = false;

0 commit comments

Comments
 (0)