mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 04:13:40 +01:00
Log LoaderException exceptions when loading plugins
This commit is contained in:
parent
a777c58a89
commit
34a1eb0b9c
2 changed files with 17 additions and 4 deletions
|
|
@ -104,6 +104,12 @@ namespace Dalamud.Plugin
|
|||
}
|
||||
catch (Exception ex) {
|
||||
Log.Error(ex, $"Plugin load for {dllFile.FullName} failed.");
|
||||
if (ex is ReflectionTypeLoadException) {
|
||||
var typeLoadException = ex as ReflectionTypeLoadException;
|
||||
foreach (var exception in typeLoadException.LoaderExceptions) {
|
||||
Log.Error(exception, "LoaderException:");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue