macro_rules! bail {
() => { ... };
($message:literal) => { ... };
($fmt:expr, $($arg:tt)*) => { ... };
($error:expr) => { ... };
}Expand description
Return an error.
The argument can be either:
- nothing, in which case a generic message is logged at the
Unspecifiedlevel. - a string literal, in which case the provided literal is logged at the
Unspecifiedlevel. - a format expression, in which case the message is formatted and logged at the
Unspecifiedlevel. - an
Error, in which case the given error is logged unchanged.