[docs] return exit on links to nowhere

This commit is contained in:
Ivan Blinkov 2019-01-23 13:22:01 +03:00
parent 143eaaf4c8
commit 21b9300b73

View File

@ -34,6 +34,7 @@ def test_single_page(input_path, lang):
logging.error('Found %d duplicate anchor points' % duplicate_anchor_points)
if links_to_nowhere:
logging.error('Found %d links to nowhere' % links_to_nowhere)
system.exit(10)
assert len(anchor_points) > 10, 'Html parsing is probably broken'