Merge pull request #2521 from dotnet-maestro-bot/merge/release/2.2-to-master

[automated] Merge branch 'release/2.2' => 'master'
This commit is contained in:
Ajay Bhargav Baaskaran 2018-07-31 13:01:44 -07:00 committed by GitHub
commit 3f429d02ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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)