From c3e8621de64b9d9e212fb5cd368944206198d71b Mon Sep 17 00:00:00 2001 From: trawzified <55751269+tr4wzified@users.noreply.github.com> Date: Sat, 20 Jul 2024 11:58:04 +0200 Subject: [PATCH] Add logging to determine faulty file on hashing errors --- Wabbajack.Installer/StandardInstaller.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Wabbajack.Installer/StandardInstaller.cs b/Wabbajack.Installer/StandardInstaller.cs index b839c09d..c77b149f 100644 --- a/Wabbajack.Installer/StandardInstaller.cs +++ b/Wabbajack.Installer/StandardInstaller.cs @@ -247,7 +247,16 @@ public class StandardInstaller : AInstaller var metaFile = download.WithExtension(Ext.Meta); 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); IEnumerable meta;