feat(controller): Integrate py_get_definition for on-demand lookup
This commit is contained in:
@@ -409,7 +409,7 @@ def py_get_definition(path: str, name: str) -> str:
|
||||
start = cast(int, getattr(node, "lineno")) - 1
|
||||
end = cast(int, getattr(node, "end_lineno"))
|
||||
return "".join(lines[start:end])
|
||||
return f"ERROR: could not find definition '{name}' in {path}"
|
||||
return f"ERROR: definition '{name}' not found in {path}"
|
||||
except Exception as e:
|
||||
return f"ERROR retrieving definition '{name}' from '{path}': {e}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user