Improved error messages inside GetExpiredOfferItems

This commit is contained in:
Chomp
2025-06-29 15:48:35 +01:00
parent cb559fdf5c
commit 14e875f199
@@ -338,15 +338,13 @@ public class RagfairOfferHolder(
var offer = GetOfferById(expiredOfferId);
if (offer is null)
{
_logger.Warning($"offerId: {expiredOfferId} was not found !!");
_logger.Warning($"Expired offerId: {expiredOfferId} not found, skipping");
continue;
}
if (offer.Items?.Count == 0)
{
_logger.Error(
$"Unable to process expired offer: {expiredOfferId}, it has no items"
);
_logger.Error($"Expired offerId: {expiredOfferId} has no items, skipping");
continue;
}