Skip to content

Commit

Permalink
Show the message but not the stack trace in SA0002 details
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Jan 11, 2016
1 parent e3bb82a commit 41b5dc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static void HandleCompilation(CompilationAnalysisContext context)
}
catch (JsonException ex)
{
string details = ex.ToString();
string details = ex.Message;
string completeDescription = string.Format(Description.ToString(CultureInfo.CurrentCulture), details);

var completeDescriptor = new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, AnalyzerCategory.SpecialRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, completeDescription, HelpLink);
Expand Down

0 comments on commit 41b5dc3

Please sign in to comment.