Function io_error_with_path

Source
pub fn io_error_with_path<P: AsRef<Path>>(source: Error, path: P) -> AppError
Expand description

Helper function to create an AppError::IoError with path context.

§Arguments

  • source - The original std::io::Error.
  • path - The path associated with the error, convertible to AsRef<std::path::Path>.

§Returns

An AppError::IoError variant containing the path string and the source error.