Skip to content

Commit

Permalink
Show failure popup for exceptions from calls to FinishedLoading.
Browse files Browse the repository at this point in the history
  • Loading branch information
CptMoore committed Jan 2, 2025
1 parent 602b4a2 commit 4fecbd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ModTek/Features/Manifest/Mods/ModDefExLoading.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ internal static void FinishedLoading(ModDefEx modDef, List<string> ModLoadOrder)
catch (Exception e)
{
Log.Main.Warning?.Log($"\t{modDef.QuotedName}: Failed to invoke '{method.DeclaringType?.Name}.{method.Name}', exception", e);
ModDefsDatabase.FailedToLoadMods.Add(modDef.Name);
}
}
}
Expand Down

0 comments on commit 4fecbd3

Please sign in to comment.