Macro utils::bail

source ยท
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 Unspecified level.
  • a string literal, in which case the provided literal is logged at the Unspecified level.
  • a format expression, in which case the message is formatted and logged at the Unspecified level.
  • an Error, in which case the given error is logged unchanged.