pub fn record_failure(
context: WorkspaceLogContext<'_>,
phase: &'static str,
error: &(dyn Error + 'static),
) -> StringExpand description
Preserve the source chain before callers flatten an I/O error into ToolError. A returned number can be shown to the user and searched in server logs.