macro_rules! set_error {
($code:expr, $($msg_args:tt)+) => { ... };
}
Expand description
Set the last error.
ยงExample:
let reason = "just 'cause";
tarantool::set_error!(TarantoolErrorCode::Unsupported, "this you cannot do, because: {reason}");
return Err(BoxError::last());