Unwrap inner exceptions for AggregateExceptions
This commit is contained in:
parent
5834660081
commit
8d095d3af6
|
|
@ -37,6 +37,12 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Internal
|
||||||
{
|
{
|
||||||
return base.Execute(ExpandResponseFiles(args));
|
return base.Execute(ExpandResponseFiles(args));
|
||||||
}
|
}
|
||||||
|
catch (AggregateException ex) when (ex.InnerException != null)
|
||||||
|
{
|
||||||
|
Error.WriteLine(ex.InnerException.Message);
|
||||||
|
Error.WriteLine(ex.InnerException.StackTrace);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Error.WriteLine(ex.Message);
|
Error.WriteLine(ex.Message);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue