Browse Source

Plugins: Unwrap CompositionFailedException to make errors more visible

pull/2333/head
Siegfried Pammer 4 years ago
parent
commit
0f84ec1eef
  1. 7
      ILSpy/App.xaml.cs

7
ILSpy/App.xaml.cs

@ -126,6 +126,13 @@ namespace ICSharpCode.ILSpy @@ -126,6 +126,13 @@ namespace ICSharpCode.ILSpy
// could be used to log the errors directly. Used at the end so that it does not prevent the export provider setup.
config.ThrowOnErrors();
}
catch (CompositionFailedException ex) when (ex.InnerException is AggregateException agex)
{
foreach (var inner in agex.InnerExceptions)
{
StartupExceptions.Add(new ExceptionData { Exception = inner });
}
}
catch (Exception ex)
{
StartupExceptions.Add(new ExceptionData { Exception = ex });

Loading…
Cancel
Save