macro_rules! ensure { ($cond:expr, $e:expr $(,)?) => { ... }; }
Return with an error if a condition is not met.
Simplifies the pattern of checking for a condition and returning with an error.