Skip to content

Commit

Permalink
PROTON-2806 Construct the correct error message for wrong delivery ID
Browse files Browse the repository at this point in the history
Use the correct expected value in the error message.
  • Loading branch information
tabish121 committed Mar 14, 2024
1 parent 3593a3f commit 2aa2911
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,9 @@ void validateNextDeliveryId(long deliveryId) {
if (lastDeliveryid == null) {
lastDeliveryid = new SequenceNumber((int) deliveryId);
} else {
int previousId = lastDeliveryid.intValue();
if (lastDeliveryid.increment().compareTo((int) deliveryId) != 0) {
session.getConnection().getEngine().engineFailed(
new ProtocolViolationException("Expected delivery-id " + previousId + ", got " + deliveryId));
new ProtocolViolationException("Expected delivery-id " + lastDeliveryid + ", got " + deliveryId));
}
}
}
Expand Down

0 comments on commit 2aa2911

Please sign in to comment.