From a3cb6064c35e5623abe1951555d1b6e9b74f21e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 17 Jun 2018 18:36:05 +0300 Subject: [PATCH] Add info about the item type in the file not found page --- neomi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neomi.py b/neomi.py index 59f1042..6e0d7d2 100644 --- a/neomi.py +++ b/neomi.py @@ -694,7 +694,7 @@ class Serve(threading.Thread): except FileNotFoundError: log('%s [%s]: Requested path not found: %s' % (self.address, protocol.name, path_raw)) - reader = StringReader('%s not found\n' % path_raw) + reader = StringReader('%s not found\n\nMake sure you included the item type in the URL\n' % path_raw) send_header(self.sock, protocol, Status.notfound, 'text/plain', config = self.config) if not just_headers: send_file(self.sock, reader, protocol, 'text/plain', config = self.config)