Skip to content

Commit 81197f0

Browse files
committed
Tweaked a 404 message to differentiate between two not-found cases.
- Legacy-Id: 17767
1 parent 73144a6 commit 81197f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def document_html(request, name, rev=None):
685685

686686
doc = docs.get()
687687
if not os.path.exists(doc.get_file_name()):
688-
raise Http404("Document not found: %s" % doc.get_base_name())
688+
raise Http404("File not found: %s" % doc.get_file_name())
689689

690690
top = render_document_top(request, doc, "status", name)
691691
if not rev and not name.startswith('rfc'):

0 commit comments

Comments
 (0)