Skip to main content

file_err

Macro file_err 

Source
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”