mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
webconfig: Only include path in error if we have one
This makes for a super misleading error message. See #7917.
This commit is contained in:
parent
e2146a0eee
commit
16d4424f6c
1 changed files with 2 additions and 2 deletions
|
@ -1431,9 +1431,9 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
pass
|
||||
|
||||
def log_error(self, format, *args):
|
||||
if format == "code %d, message %s":
|
||||
if format == "code %d, message %s" and hasattr(self, 'path'):
|
||||
# This appears to be a send_error() message
|
||||
# We want to include the path
|
||||
# We want to include the path (if we have one)
|
||||
(code, msg) = args
|
||||
format = "code %d, message %s, path %s"
|
||||
args = (code, msg, self.path)
|
||||
|
|
Loading…
Reference in a new issue