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(TarantoolError::last());