MCPcopy Create free account
hub / github.com/METR/vivaria / exec_with_err_log

Function exec_with_err_log

cli/viv_cli/github.py:113–115  ·  view source on GitHub ↗

Execute a command and log errors.

(cmd: str | list[str])

Source from the content-addressed store, hash-verified

111 """
112
113 def exec_with_err_log(cmd: str | list[str]) -> ExecResult:
114 """Execute a command and log errors."""
115 return execute(cmd, error_out=True, log=True)
116
117 if ignore_workdir:
118 commit = get_latest_commit_id()

Callers 1

Calls 1

executeFunction · 0.90

Tested by

no test coverage detected