mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Use more appropriate exception
This commit is contained in:
@@ -519,7 +519,7 @@ namespace ArchiSteamFarm.Steam.Integration {
|
||||
|
||||
foreach (uint gameID in uniqueValidGameIDs) {
|
||||
if (request.Body.games_played.Count >= maxGamesCount) {
|
||||
throw new InvalidOperationException(nameof(maxGamesCount));
|
||||
throw new ArgumentOutOfRangeException(nameof(gameIDs));
|
||||
}
|
||||
|
||||
request.Body.games_played.Add(new CMsgClientGamesPlayed.GamePlayed { game_id = new GameID(gameID) });
|
||||
|
||||
Reference in New Issue
Block a user