mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #1765 from LostDragonist/bsa_extract
Catch and log errors when extracting BSAs
This commit is contained in:
commit
87093a1149
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user