macro_rules! err_msg { ($kind:ident) => { ... }; ($kind:ident, $msg:expr) => { ... }; }
Assemble an error kind and optional message