Skip to main content

store_io_with_path

Function store_io_with_path 

Source
pub fn store_io_with_path(e: StoreError, path: &Path, hint: &str) -> CliError
Expand description

Re-wrap a StoreError I/O failure with the offending PATH + a one-clause hint (UX-P4-8). ONLY the pathless StoreError::Io is enriched; every other variant (WrongPassphrase, Locked, HalfCreatedVault, …) passes through unchanged — each already carries its own precise meaning and must NOT be masked behind a generic path/hint.