Update exception thrown if AbstractModMetadata fails to Activate

This commit is contained in:
Archangel
2025-10-07 17:25:05 +02:00
parent 89ca6d693b
commit 501f5d6615
+8 -1
View File
@@ -113,7 +113,14 @@ public class ModDllLoader
if (modMetadata != null)
{
result = (AbstractModMetadata)Activator.CreateInstance(modMetadata)!;
try
{
result = (AbstractModMetadata) Activator.CreateInstance(modMetadata)!;
}
catch(Exception ex)
{
throw new Exception($"Failed to load mod metadata for: {Path.GetFullPath(path)} \n{ex}");
}
}
}
}