Skip to content
Snippets Groups Projects
Commit d1232fb1 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

fix: log interpreter tool error

parent bedf1992
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,7 @@ class E2BCodeInterpreter:
exec = interpreter.notebook.exec_cell(code)
if exec.error:
logger.error("Error when executing code", exec.error)
output = E2BToolOutput(is_error=True, logs=exec.logs, results=[])
else:
if len(exec.results) == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment