diff --git a/agent.py b/agent.py index 62beb8bc14..c38172f60a 100644 --- a/agent.py +++ b/agent.py @@ -1572,7 +1572,10 @@ def get_tool( try: classes = extract_tools.load_classes_from_file(path, Tool) # type: ignore[arg-type] break - except Exception: + except Exception as error: + PrintStyle(font_color="red", padding=True).print( + f"Failed to load tool '{name}' from {path}: {error}" + ) continue tool_class = classes[0] if classes else Unknown