Make 404 errors more useful - report the path asked for
Change-Id: If1dae28581080481052fef36be930fae55e324bc
diff --git a/visualisation/visualisation.py b/visualisation/visualisation.py
index f004f70..6bfbdf6 100644
--- a/visualisation/visualisation.py
+++ b/visualisation/visualisation.py
@@ -251,6 +251,7 @@
self.wfile.write('Content-type: text/plain\r\n')
self.end_headers()
self.wfile.write('404 Not Found\r\n')
+ self.wfile.write('%s' % self.parsed_path.path)
logging.error('VLAN graphic not found - asked for %s', self.parsed_path.path)
return
@@ -361,6 +362,7 @@
self.wfile.write('Content-type: text/plain\r\n')
self.end_headers()
self.wfile.write('404 Not Found')
+ self.wfile.write('%s' % self.parsed_path.path)
logging.error('File not supported - asked for %s', self.parsed_path.path)
return