Merge "Add a link to syntax.md after error messages"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java b/src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java
index 73947ad..c58a9ef 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/findowners/OwnersValidator.java
@@ -135,6 +135,9 @@
       throw new CommitValidationException("failed to check owners files", e);
     }
     if (hasError(messages)) {
+      add(messages, "See OWNERS file syntax document at "
+          + "https://gerrit.googlesource.com/plugins/find-owners/+/"
+          + "master/src/main/resources/Documentation/syntax.md", true);
       throw new CommitValidationException("found invalid owners file", messages);
     }
     return messages;