From 2b00292bfe6093ca461b003ef013dbd15eac5cbf Mon Sep 17 00:00:00 2001
From: Concedo <39025047+LostRuins@users.noreply.github.com>
Date: Thu, 27 Nov 2025 10:07:08 +0800
Subject: [PATCH] display path on 404
---
koboldcpp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/koboldcpp.py b/koboldcpp.py
index b62c7f478..09834fafe 100755
--- a/koboldcpp.py
+++ b/koboldcpp.py
@@ -3840,7 +3840,7 @@ Change Mode
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.
Current path: {self.path}"
self.wfile.write(rp.encode())
else:
self.send_response(200)