Adjusted example error message to reflect the situation that causes the error.

This commit is contained in:
Joonas Westlin 2017-05-22 22:23:48 +03:00 committed by Ryan Nowak
parent a18f59ab88
commit 9a6cb89b8d
1 changed files with 2 additions and 2 deletions

View File

@ -346,8 +346,8 @@ namespace Microsoft.AspNetCore.Routing.Template
{
// The optional parameter is preceded by something that is not a literal.
// Example of error message:
// "In the segment '{RouteValue}-{param?}', the optional parameter 'param' is preceded
// by an invalid segment '-'. Only a period (.) can precede an optional parameter.
// "In the segment '{RouteValue}{param?}', the optional parameter 'param' is preceded
// by an invalid segment '{RouteValue}'. Only a period (.) can precede an optional parameter.
context.Error = string.Format(
Resources.TemplateRoute_OptionalParameterCanbBePrecededByPeriod,
segment.DebuggerToString(),