fix: better sanity checking for bad plugin manifests

This commit is contained in:
goaaats 2021-12-18 12:27:57 +01:00
parent 8e5db448b2
commit 678cd0f130
No known key found for this signature in database
GPG key ID: F18F057873895461
5 changed files with 28 additions and 7 deletions

View file

@ -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}");