Catch and log errors when extracting BSAs

This commit is contained in:
Chris Bessent 2021-12-14 12:41:57 -07:00
parent f0820514e7
commit 466d9008a0

View File

@ -155,8 +155,15 @@ namespace Wabbajack.VirtualFileSystem
if (!shouldExtract(entry.Path))
continue;
var result = await mapfn(entry.Path, new ExtractedMemoryFile(await entry.GetStreamFactory()));
results.Add(entry.Path, result);
try
{
var result = await mapfn(entry.Path, new ExtractedMemoryFile(await entry.GetStreamFactory()));
results.Add(entry.Path, result);
}
catch (Exception e)
{
Utils.Error($"Failed to extract '{entry.Path}' from '{sFn.Name}'");
}
}
return results;