Added status reporting to ResolveArchive

This commit is contained in:
Justin Swanson 2019-12-22 12:14:48 -06:00
parent 00f702f1f8
commit bf756a2bea

View File

@ -221,6 +221,8 @@ namespace Wabbajack.Lib
public async Task<Archive> ResolveArchive(IndexedArchive archive)
{
Utils.Status($"Checking link for {archive.Name}", alsoLog: true);
if (archive.IniData == null)
Error(
$"No download metadata found for {archive.Name}, please use MO2 to query info or add a .meta file and try again.");
@ -238,8 +240,6 @@ namespace Wabbajack.Lib
result.Meta = archive.Meta;
result.Size = archive.File.Size;
Info($"Checking link for {archive.Name}");
if (result.State != null && !await result.State.Verify())
Error(
$"Unable to resolve link for {archive.Name}. If this is hosted on the Nexus the file may have been removed.");