Flatten AggregateExceptions in rzc
This commit is contained in:
parent
3ff064cea3
commit
a4b91d6dce
|
|
@ -57,8 +57,11 @@ namespace Microsoft.AspNetCore.Razor.Tools
|
|||
}
|
||||
catch (AggregateException ex) when (ex.InnerException != null)
|
||||
{
|
||||
Error.WriteLine(ex.InnerException.Message);
|
||||
Error.WriteLine(ex.InnerException.StackTrace);
|
||||
foreach (var innerException in ex.Flatten().InnerExceptions)
|
||||
{
|
||||
Error.WriteLine(innerException.Message);
|
||||
Error.WriteLine(innerException.StackTrace);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
catch (CommandParsingException ex)
|
||||
|
|
|
|||
Loading…
Reference in New Issue