mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 08:18:36 +00:00
Fix exception message
This commit is contained in:
1 parent
72ce32a65a
commit
5104c7008e
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user