macro_rules! bail { ($($arg:tt)*) => { ... }; }
Print an error message and exit with code 1.
cli_ui::bail!("cannot read file: {}", path.display());