Skip to content

Commit a9ac556

Browse files
committed
bugfix
1 parent fa2fe92 commit a9ac556

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

driver/src/main/java/org/neo4j/driver/internal/cursor/RxResultCursorImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ public void onError(Throwable throwable) {
169169

170170
@Override
171171
public void onIgnored() {
172-
onError(new ClientException("The message has been ignored by the server possibly for a previous failure"));
172+
var throwable = termSupplier.get();
173+
if (throwable == null) {
174+
throwable = new ClientException("A message has been ignored during result streaming.");
175+
}
176+
onError(throwable);
173177
}
174178

175179
@Override

0 commit comments

Comments
 (0)