From 2ff5e7301e92c4172e0c76a8546f8f1b958e6b7c Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Mon, 1 Apr 2019 17:20:18 -0700 Subject: [PATCH] Fixes: dotnet/aspnetcore-tooling#5640 FormatException from diagnostic This was just a badly written diagnostic format string \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/ef7d82a7ff1025f754698edcbd1c074d36937ab2 --- .../src/Components/ComponentDiagnosticFactory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs index 42a7b4bdaf..7d21e6493e 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs @@ -29,9 +29,9 @@ namespace Microsoft.AspNetCore.Razor.Language.Components public static readonly RazorDiagnosticDescriptor CodeBlockInAttribute = new RazorDiagnosticDescriptor( $"{DiagnosticPrefix}9979", () => - "Code blocks delimited by '@{...}' like '@{{ {0} }}' for attributes are no longer supported " + + "Code blocks delimited by '@{{...}}' like '@{{ {0} }}' for attributes are no longer supported " + "These features have been changed to use attribute syntax. " + - "Use 'attr=\"@(x => {... }\"'.", + "Use 'attr=\"@(x => {{... }}\"'.", RazorDiagnosticSeverity.Error); public static RazorDiagnostic Create_CodeBlockInAttribute(SourceSpan? source, string expression)