From 81197f044c0dac12d840907fd22280ce552894ff Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 10 May 2020 14:13:39 +0000 Subject: [PATCH] Tweaked a 404 message to differentiate between two not-found cases. - Legacy-Id: 17767 --- ietf/doc/views_doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/doc/views_doc.py b/ietf/doc/views_doc.py index 93b840678..9a13459b7 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -685,7 +685,7 @@ def document_html(request, name, rev=None): doc = docs.get() 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) if not rev and not name.startswith('rfc'):