swayipc
macro_rules! bail { ($ e : expr) => { ... }; ($ fmt : expr, $ ($ arg : tt) *) => { ... }; }
Exits a function early with an Error.
Error
The bail! macro provides an easy way to exit a function. bail!(X) is equivalent to writing:
bail!
bail!(X)
return Err(format_err!(X))