mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Use more appropriate exception
This commit is contained in:
parent
2c9d131ceb
commit
ff4e9aa22a
1 changed files with 1 additions and 1 deletions
|
@ -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) });
|
||||
|
|
Loading…
Reference in a new issue