macro_rules! push_err {
    ($master:expr, $err:expr) => { ... };
}
Expand description

Convenience macro to push an error string onto the master errors vector

Examples

use kubos_service::push_err;
use std::sync::{Arc, RwLock};
let master_err = Arc::new(RwLock::new(vec![]));

push_err!(master_err, "Message1".to_owned());
push_err!(master_err, "Message2".to_owned());

assert_eq!(
    vec!["Message1".to_owned(), "Message2".to_owned()],
    *master_err.read().unwrap()
);