Skip to content

Commit

Permalink
Merge pull request #660 from microlith57/feat/better-cache-fail-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoJameson authored Aug 14, 2023
2 parents cec7cf1 + 08a228e commit 0609fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Celeste.Mod.mm/Mod/Everest/Everest.Relinker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static Assembly GetRelinkedAssembly(EverestModuleMetadata meta, string as
if (File.Exists(cachedPath) && File.Exists(cachedChecksumPath) &&
ChecksumsEqual(checksums, File.ReadAllLines(cachedChecksumPath))) {
Logger.Log(LogLevel.Verbose, "relinker", $"Loading cached assembly for {meta} - {asmname}");

// Load the assembly and the module definition
ModuleDefinition mod = ModuleDefinition.ReadModule(cachedPath);
try {
Expand All @@ -235,7 +235,7 @@ public static Assembly GetRelinkedAssembly(EverestModuleMetadata meta, string as

return asm;
} catch (Exception e) {
Logger.Log(LogLevel.Warn, "relinker", $"Failed loading {meta} - {asmname}");
Logger.Log(LogLevel.Warn, "relinker", $"Failed loading cached assembly {meta} - {asmname}");
e.LogDetailed();
return null;
} finally {
Expand Down

0 comments on commit 0609fca

Please sign in to comment.