Fix copy-paste error messages in log strings

1. agent.py: f-string had literal 'f' before variable, producing
   "Find the current log file here: f/Users/..." instead of the path.

2. ls.py: delete_text_between_positions logged "insert_text_at_position
   called before Language Server started" — wrong method name.
This commit is contained in:
Asher Haig committed 2026-03-21 21:37:16 -04:00
1 parent 0c915bd18d
commit 55f3253ab7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -483,7 +483,7 @@ class SerenaAgent:
else:
log_path = SerenaPaths().last_returned_log_file_path
if log_path is not None:
return f"Find the current log file here: f{log_path}"
return f"Find the current log file here: {log_path}"
else:
return "Unfortunately, logs are not available. We recommend enabling the web dashboard/logging in general."
+1 -1
View File
@@ -817,7 +817,7 @@ class SolidLanguageServer(ABC):
Delete text between the given start and end positions in the given file and return the deleted text.
"""
if not self.server_started:
log.error("insert_text_at_position called before Language Server started")
log.error("delete_text_between_positions called before Language Server started")
raise SolidLSPException("Language Server not started")
absolute_file_path = str(PurePath(self.repository_root_path, relative_file_path))