mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
fix: better sanity checking for bad plugin manifests
This commit is contained in:
parent
8e5db448b2
commit
678cd0f130
5 changed files with 28 additions and 7 deletions
|
|
@ -247,9 +247,9 @@ namespace Dalamud.Plugin.Internal
|
|||
{
|
||||
// Not a plugin
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error("During boot plugin load, an unexpected error occurred");
|
||||
Log.Error(ex, "During boot plugin load, an unexpected error occurred");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -519,6 +519,9 @@ namespace Dalamud.Plugin.Internal
|
|||
|
||||
LocalPlugin plugin;
|
||||
|
||||
if (!manifest.CheckSanity())
|
||||
throw new InvalidOperationException("Plugin manifest is not sane.");
|
||||
|
||||
if (isDev)
|
||||
{
|
||||
Log.Information($"Loading dev plugin {name}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue