Commits

Georg Brandl  committed a3cb51d

Make warning message consistent; re-read toctree document when include is missing.

  • Participants
  • Parent commits e08c693

Comments (0)

Files changed (1)

File sphinx/directives/other.py

                     entries.append((title, ref))
                 elif docname not in env.found_docs:
                     ret.append(self.state.document.reporter.warning(
-                        'toctree references unknown document %r' % docname,
-                        line=self.lineno))
+                        'toctree contains reference to nonexisting '
+                        'document %r' % docname, line=self.lineno))
+                    env.note_reread()
                 else:
                     entries.append((title, docname))
                     includefiles.append(docname)