Skip to content

Commit

Permalink
Modify checkDuplicate error message (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
landonmsft committed Jun 13, 2022
1 parent ef7def2 commit 5913abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PAModel/PAConvert/Yaml/YamlLexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ internal YamlToken CheckDuplicate(string propName, int currentLine)
if (_previousProperties.TryGetValue(propName, out oldLine))
{
// Key is already present.
return YamlToken.NewError(default(SourceLocation), $"Property '{propName}' is already defined on line {oldLine}.");
return YamlToken.NewError(default(SourceLocation), $"Property was already defined on line {oldLine} and now on line {currentLine}.");
}
_previousProperties.Add(propName, currentLine);
return null;
Expand Down

0 comments on commit 5913abd

Please sign in to comment.