Skip to content

Commit

Permalink
String "Error Message" and "Stack Trace" is going out of sync (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Faizan2304 authored and codito committed Jan 23, 2017
1 parent 3704d73 commit 3b43a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vstest.console/Internal/ConsoleLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ private static void DisplayFullInformation(TestResult result)
if (!String.IsNullOrEmpty(result.ErrorMessage))
{
hasData = true;
Output.WriteLine(CommandLineResources.ErrorMessageBanner, OutputLevel.Error);
Output.WriteLine(CommandLineResources.ErrorMessageBanner, OutputLevel.Information);
string errorMessage = String.Format(CultureInfo.CurrentCulture, "{0}{1}", TestMessageFormattingPrefix, result.ErrorMessage);
Output.WriteLine(errorMessage, OutputLevel.Information);
}

if (!String.IsNullOrEmpty(result.ErrorStackTrace))
{
hasData = true;
Output.WriteLine(CommandLineResources.StacktraceBanner, OutputLevel.Error);
Output.WriteLine(CommandLineResources.StacktraceBanner, OutputLevel.Information);
string stackTrace = String.Format(CultureInfo.CurrentCulture, "{0}", result.ErrorStackTrace);
Output.Write(stackTrace, OutputLevel.Information);
}
Expand Down

0 comments on commit 3b43a54

Please sign in to comment.