Tweaked a 404 message to differentiate between two not-found cases.

- Legacy-Id: 17767
This commit is contained in:
Henrik Levkowetz 2020-05-10 14:13:39 +00:00
parent 73144a6782
commit 81197f044c

View file

@ -685,7 +685,7 @@ def document_html(request, name, rev=None):
doc = docs.get() doc = docs.get()
if not os.path.exists(doc.get_file_name()): if not os.path.exists(doc.get_file_name()):
raise Http404("Document not found: %s" % doc.get_base_name()) raise Http404("File not found: %s" % doc.get_file_name())
top = render_document_top(request, doc, "status", name) top = render_document_top(request, doc, "status", name)
if not rev and not name.startswith('rfc'): if not rev and not name.startswith('rfc'):