mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Better error message for unknown documents in toctree.
This commit is contained in:
parent
11f63acd22
commit
0499df0798
@ -646,7 +646,7 @@ def toctree_directive(name, arguments, options, content, lineno,
|
||||
docname = posixpath.normpath(posixpath.join(dirname, docname))
|
||||
if docname not in env.found_docs:
|
||||
ret.append(state.document.reporter.warning(
|
||||
'toctree references unknown document %s' % docname, line=lineno))
|
||||
'toctree references unknown document %r' % docname, line=lineno))
|
||||
else:
|
||||
includefiles.append(docname)
|
||||
subnode['includefiles'] = includefiles
|
||||
|
Loading…
Reference in New Issue
Block a user