Skip to content

Commit

Permalink
Merge pull request #204 from avast/chore/pub_conf_error_message
Browse files Browse the repository at this point in the history
chore: core - publisher confirmations - add more details to the error message in the case of unexpected delivery tag
  • Loading branch information
mi-char committed Jun 8, 2023
2 parents 8f66761 + 93c397e commit a3ac77f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ class PublishConfirmsRabbitMQProducer[F[_], A: ProductConverter](name: String,
} else {
confirmationCallbacks.get(deliveryTag) match {
case Some(callback) => callback.complete(result)
case None => logger.plainError(s"Received confirmation for unknown delivery tag $deliveryTag. That is unexpected state.")
case None =>
logger.plainError(s"Received confirmation for unknown delivery tag $deliveryTag with result $result. That is unexpected state.")
}
}
}
Expand Down

0 comments on commit a3ac77f

Please sign in to comment.