Fix exception message

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-01-06 18:04:39 +01:00
1 parent 72ce32a65a
commit 5104c7008e
1 file changed
+2 -2
+2 -2
View File
@@ -421,8 +421,8 @@ class JetBrainsCodeEditor(CodeEditor[JetBrainsSymbol]):
raise ValueError(f"No symbol with name {name_path} found in file {relative_file_path}")
if len(symbols) > 1:
raise ValueError(
f"Found multiple {len(symbols)} symbols with name {name_path} in file {relative_file_path}. "
"Their locations are: \n " + json.dumps([s["location"] for s in symbols], indent=2)
f"Found multiple {len(symbols)} symbols with name {name_path} in file {relative_file_path}: "
+ json.dumps(symbols, indent=2)
)
return JetBrainsSymbol(symbols[0], self._project)