Merge pull request #1765 from LostDragonist/bsa_extract

Catch and log errors when extracting BSAs
This commit is contained in:
Timothy Baldridge 2021-12-17 09:34:02 -07:00 committed by GitHub
commit 87093a1149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,8 +155,15 @@ namespace Wabbajack.VirtualFileSystem
if (!shouldExtract(entry.Path)) if (!shouldExtract(entry.Path))
continue; continue;
var result = await mapfn(entry.Path, new ExtractedMemoryFile(await entry.GetStreamFactory())); try
results.Add(entry.Path, result); {
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; return results;