diff --git a/travis/script-docs.py b/travis/script-docs.py index 2bce4bfd2..33b2818c8 100644 --- a/travis/script-docs.py +++ b/travis/script-docs.py @@ -42,6 +42,11 @@ def check_file(fname): else: print('Error: no documentation in: ' + fname) return 1 + + if not doclines: + print('Error: missing or malformed documentation in: ' + fname) + return 1 + title, underline = [d for d in doclines if d and '=begin' not in d and '[====[' not in d][:2] if underline != '=' * len(title):