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)
|
catch (AggregateException ex) when (ex.InnerException != null)
|
||||||
{
|
{
|
||||||
Error.WriteLine(ex.InnerException.Message);
|
foreach (var innerException in ex.Flatten().InnerExceptions)
|
||||||
Error.WriteLine(ex.InnerException.StackTrace);
|
{
|
||||||
|
Error.WriteLine(innerException.Message);
|
||||||
|
Error.WriteLine(innerException.StackTrace);
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
catch (CommandParsingException ex)
|
catch (CommandParsingException ex)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue