macro_rules! bail {
( $( $arg:tt )+ ) => { ... };
}Expand description
Break out of the current function, returning an internal error.
ยงExample
use apollo_federation::bail;
use apollo_federation::error::FederationError;
fn example() -> Result<(), FederationError> {
bail!("Something went horribly wrong");
unreachable!()
}