intermodal/src/errln.rs
Casey Rodarmor 1532113782
Print individual file torrent verification errors
If torrent verification fails, print all errors with individual files.

type: changed
2020-04-07 19:01:26 -07:00

12 lines
333 B
Rust

macro_rules! errln {
($env:expr) => {
writeln!($env.err_mut(), "").context(crate::error::Stderr)
};
($env:expr, $fmt:expr) => {
writeln!($env.err_mut(), $fmt).context(crate::error::Stderr)
};
($env:expr, $fmt:expr, $($arg:tt)*) => {
writeln!($env.err_mut(), $fmt, $($arg)*).context(crate::error::Stderr)
};
}