mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Add logging to determine faulty file on hashing errors
This commit is contained in:
parent
5cc6d866ea
commit
c3e8621de6
@ -247,7 +247,16 @@ public class StandardInstaller : AInstaller<StandardInstaller>
|
|||||||
var metaFile = download.WithExtension(Ext.Meta);
|
var metaFile = download.WithExtension(Ext.Meta);
|
||||||
|
|
||||||
var found = bySize[download.Size()];
|
var found = bySize[download.Size()];
|
||||||
var hash = await FileHashCache.FileHashCachedAsync(download, token);
|
Hash hash = default;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
hash = await FileHashCache.FileHashCachedAsync(download, token);
|
||||||
|
}
|
||||||
|
catch(Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogError($"Failed to get hash for file {download}!");
|
||||||
|
throw;
|
||||||
|
}
|
||||||
var archive = found.FirstOrDefault(f => f.Hash == hash);
|
var archive = found.FirstOrDefault(f => f.Hash == hash);
|
||||||
|
|
||||||
IEnumerable<string> meta;
|
IEnumerable<string> meta;
|
||||||
|
Loading…
Reference in New Issue
Block a user