Apache Solr open-source search software
improve error reporting when this tool finds javadocs problems
Michael McCandless73ec0f28cc91
diff --git a/dev-tools/scripts/checkJavaDocs.py b/dev-tools/scripts/checkJavaDocs.pyindex 4089a8f15b5..b8a65990912 100644--- a/dev-tools/scripts/checkJavaDocs.py+++ b/dev-tools/scripts/checkJavaDocs.py@@ -161,9 +161,11 @@ def checkClassSummaries(fullPath):foundMethodDetail = FalselastMethodAnchor = None+ lineCount = 0for line in f.readlines():m = reMethodDetail.search(line)+ lineCount += 1if m is not None:foundMethodDetail = Truecontinue@@ -212,6 +214,8 @@ def checkClassSummaries(fullPath):if inThing:if lineLower.find('</tr>') != -1:if not hasDesc:+ if lastItem is None:+ raise RuntimeError('failed to locate javadoc item in %s, line %d? last line: %s' % (fullPath, lineCount, line.rstrip()))missing.append((lastCaption, unEscapeURL(lastItem)))inThing = Falsecontinue