Merge pull request #840 from wabbajack-tools/number-format-exceptions-with-nexus

Give some debug information when we have a number format exception wi…
This commit is contained in:
Timothy Baldridge 2020-05-13 21:20:06 -07:00 committed by GitHub
commit a4d6ef2331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,8 @@ namespace Wabbajack.Lib.Downloaders
throw;
}
try
{
return new State
{
Name = NexusApiUtils.FixupSummary(info.name),
@ -92,6 +94,13 @@ namespace Wabbajack.Lib.Downloaders
FileID = long.Parse(general.fileID)
};
}
catch (FormatException)
{
Utils.Log(
$"Cannot parse ModID/FileID from {(string)general.gameName} {(string)general.modID} {(string)general.fileID}");
throw;
}
}
return null;
}