Export error-handling functions in formatted_tool_output_file.