Skip to content

Commit

Permalink
fix replay parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
poma committed Jun 7, 2017
1 parent 41e29a3 commit 1f60a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StatsFetcher/FileProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public static async Task ProcessReplayFile(string path, Game game)
var replayData = DataParser.ParseReplay(tmpPath, true, true);
var replay = replayData.Item2;

if (replayData.Item1 != DataParser.ReplayParseResult.Success) {
throw new Exception("Unable to parse replay: " + replayData.Item1);
if (replayData.Item2 == null) {
throw new Exception($"Unable to parse replay: {replayData.Item1}");
}

foreach (var profile in game.Players) {
Expand Down

0 comments on commit 1f60a28

Please sign in to comment.