@@ -58,7 +58,7 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
5858 if ( ! commandName . Equals ( correctlyCasedCommandName , StringComparison . Ordinal ) )
5959 {
6060 yield return new DiagnosticRecord (
61- string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingError , commandName , shortName ) ,
61+ string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingError , commandName , correctlyCasedCommandName ) ,
6262 GetCommandExtent ( commandAst ) ,
6363 GetName ( ) ,
6464 DiagnosticSeverity . Warning ,
@@ -91,7 +91,7 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
9191 if ( ! parameterName . Equals ( correctlyCasedParameterName , StringComparison . Ordinal ) )
9292 {
9393 yield return new DiagnosticRecord (
94- string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingError , commandName , parameterName ) ,
94+ string . Format ( CultureInfo . CurrentCulture , Strings . UseCorrectCasingParameterError , parameterName , commandName , correctlyCasedParameterName ) ,
9595 GetCommandExtent ( commandAst ) ,
9696 GetName ( ) ,
9797 DiagnosticSeverity . Warning ,
0 commit comments