display path on 404

This commit is contained in:
Concedo 2025-11-27 10:07:08 +08:00
parent d7c2f27749
commit 2b00292bfe

View file

@ -3840,7 +3840,7 @@ Change Mode<br>
if response_body is None:
self.send_response(404)
self.end_headers(content_type='text/html')
rp = 'Error: KoboldCpp HTTP Server is running, but this endpoint does not exist. Please check the URL.'
rp = f"Error: KoboldCpp HTTP Server is running, but this endpoint does not exist. Please check the URL.<br>Current path: {self.path}"
self.wfile.write(rp.encode())
else:
self.send_response(200)