Skip to main content

Module error

Module error 

Source
Expand description

Generic error type for tree-walking operations that preserves the partial summary (work that completed before the error) alongside the error chain.

Each operation (copy, link, rm, filegen) wraps this with a per-operation Summary via a type alias.

§Logging Convention

When logging this error, use {:#} or {:?} format to preserve the error chain:

tracing::error!("operation failed: {:#}", &error); // ✅ Shows full chain
tracing::error!("operation failed: {:?}", &error); // ✅ Shows full chain

The Display implementation also shows the full chain, but workspace linting enforces {:#} for consistency.

Structs§

OperationError