macro_rules! require_msg {
    ($invariant:expr, $($arg:tt)*) => { ... };
}
Expand description

Like anchor’s require!(), but with a customizable message

Example: require_msg!(condition, “the condition on account {} was violated”, account_key);