Skip to main content

record_failure

Function record_failure 

Source
pub fn record_failure(
    context: WorkspaceLogContext<'_>,
    phase: &'static str,
    error: &(dyn Error + 'static),
) -> String
Expand 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.