mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Give some debug information when we have a number format exception with Nexus archives.
This commit is contained in:
@ -79,18 +79,27 @@ namespace Wabbajack.Lib.Downloaders
|
|||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new State
|
try
|
||||||
{
|
{
|
||||||
Name = NexusApiUtils.FixupSummary(info.name),
|
return new State
|
||||||
Author = NexusApiUtils.FixupSummary(info.author),
|
{
|
||||||
Version = general.version ?? "0.0.0.0",
|
Name = NexusApiUtils.FixupSummary(info.name),
|
||||||
ImageURL = info.picture_url,
|
Author = NexusApiUtils.FixupSummary(info.author),
|
||||||
IsNSFW = info.contains_adult_content,
|
Version = general.version ?? "0.0.0.0",
|
||||||
Description = NexusApiUtils.FixupSummary(info.summary),
|
ImageURL = info.picture_url,
|
||||||
Game = GameRegistry.GetByFuzzyName((string)general.gameName).Game,
|
IsNSFW = info.contains_adult_content,
|
||||||
ModID = long.Parse(general.modID),
|
Description = NexusApiUtils.FixupSummary(info.summary),
|
||||||
FileID = long.Parse(general.fileID)
|
Game = GameRegistry.GetByFuzzyName((string)general.gameName).Game,
|
||||||
};
|
ModID = long.Parse(general.modID),
|
||||||
|
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;
|
return null;
|
||||||
|
Reference in New Issue
Block a user