diff --git a/tools/code-owners-parser/CodeOwnersParser/MatchedCodeownersEntry.cs b/tools/code-owners-parser/CodeOwnersParser/MatchedCodeownersEntry.cs index 53fe3bf25466..49d66282c519 100644 --- a/tools/code-owners-parser/CodeOwnersParser/MatchedCodeownersEntry.cs +++ b/tools/code-owners-parser/CodeOwnersParser/MatchedCodeownersEntry.cs @@ -163,7 +163,8 @@ private static bool ContainsUnsupportedSequences(string codeownersPath) { Console.Error.WriteLine( $"CODEOWNERS path \"{codeownersPath}\" ends with " + - "unsupported sequence of \"/**\". Replace it with \"/\"."); + "unsupported sequence of \"/**\". Replace it with \"/\". " + + "Until then this path will never match."); return true; } @@ -173,7 +174,8 @@ private static bool ContainsUnsupportedSequences(string codeownersPath) { Console.Error.WriteLine( $"CODEOWNERS path \"{codeownersPath}\" ends with " + - "unsupported sequence of \"/**/\". Replace it with \"/\"."); + "unsupported sequence of \"/**/\". Replace it with \"/\". " + + "Until then this path will never match."); return true; } @@ -184,8 +186,9 @@ private static bool ContainsUnsupportedSequences(string codeownersPath) { Console.Error.WriteLine( $"CODEOWNERS path \"{codeownersPath}\" contains " + - "unsupported sequence of \"**\" that is not \"/**/\". Replace it with \"*\". " + - "Until then this path will never match."); + "unsupported sequence of \"**\". Double star can be used only within slashes \"/**/\" " + + "or as a top-level catch all path of \"/**\". " + + "This path will never match."); return true; }