diff --git a/opendevin/runtime/plugins/agent_skills/agentskills.py b/opendevin/runtime/plugins/agent_skills/agentskills.py index bb7500b3c1..5ac059330f 100644 --- a/opendevin/runtime/plugins/agent_skills/agentskills.py +++ b/opendevin/runtime/plugins/agent_skills/agentskills.py @@ -85,6 +85,12 @@ def update_pwd_decorator(func): os.chdir(jupyter_pwd) try: return func(*args, **kwargs) + except Exception as e: + print(f'Failed to execute function {func.__name__}: {e}') + # Print debugging info + print(f'Current user: {os.getlogin()}') + print(f'Current IPython working directory: {os.getcwd()}') + raise e finally: os.chdir(old_pwd)