mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 20:33:40 +01:00
Merge pull request #261 from Aireil/add_loaderexceptions
Log LoaderException exceptions when loading plugins
This commit is contained in:
commit
32a72e41f9
2 changed files with 15 additions and 4 deletions
|
|
@ -104,6 +104,11 @@ namespace Dalamud.Plugin
|
|||
}
|
||||
catch (Exception ex) {
|
||||
Log.Error(ex, $"Plugin load for {dllFile.FullName} failed.");
|
||||
if (ex is ReflectionTypeLoadException typeLoadException) {
|
||||
foreach (var exception in typeLoadException.LoaderExceptions) {
|
||||
Log.Error(exception, "LoaderException:");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue