Fixed selling items on flea not informing client item has been listed

This commit is contained in:
Chomp
2025-02-02 18:14:02 +00:00
parent 15c1bb3f5a
commit ddab922f65
2 changed files with 6 additions and 2 deletions
@@ -450,7 +450,7 @@ public class RagfairController
var typeOfOffer = GetOfferType(offerRequest);
if (typeOfOffer == FleaOfferType.UNKNOWN)
{
return _httpResponseUtil.AppendErrorToOutput(output, "Unknown offer type, cannot list item on flea");
return _httpResponseUtil.AppendErrorToOutput(output, $"Unknown offer type: {typeOfOffer}, cannot list item on flea");
}
switch (typeOfOffer)
@@ -463,7 +463,7 @@ public class RagfairController
return CreatePackOffer(sessionID, offerRequest, fullProfile, output);
case FleaOfferType.UNKNOWN:
default:
throw new ArgumentOutOfRangeException();
return _httpResponseUtil.AppendErrorToOutput(output, $"Unknown offer type: {typeOfOffer}, cannot list item on flea");
}
}