Macro tarantool::set_and_get_error
source · macro_rules! set_and_get_error { ($code:expr, $($msg_args:tt)+) => { ... }; }
Expand description
Set the last tarantool error and return it immediately.
Example:
let reason = "just 'cause";
return Err(set_and_get_error!(TarantoolErrorCode::Unsupported, "this you cannot do, because: {reason}"));