Print the archive being extracted when analysis fails.

This commit is contained in:
Timothy Baldridge 2020-04-30 06:17:18 -06:00
parent d55846c872
commit c96665cde3

View File

@ -183,6 +183,9 @@ namespace Wabbajack.VirtualFileSystem
if (!await extractedFile.CanExtract()) return self; if (!await extractedFile.CanExtract()) return self;
try
{
await using var extracted = await extractedFile.ExtractAll(context.Queue); await using var extracted = await extractedFile.ExtractAll(context.Queue);
var list = await extracted var list = await extracted
@ -190,6 +193,12 @@ namespace Wabbajack.VirtualFileSystem
file => Analyze(context, self, file.Value, file.Key, depth + 1)); file => Analyze(context, self, file.Value, file.Key, depth + 1));
self.Children = list.ToImmutableList(); self.Children = list.ToImmutableList();
}
catch (Exception ex)
{
Utils.Log($"Error while examining the contents of {relPath.FileName}");
throw;
}
return self; return self;
} }