macro_rules! file_err {
($path:expr, read) => { ... };
($path:expr, write) => { ... };
($path:expr, delete) => { ... };
($path:expr, create) => { ... };
}Expand description
Helper macro for file operation errors with context Usage: file_err!(“path”, “read”) -> “failed to read path”