mirror of
https://github.com/vacp2p/zerokit.git
synced 2025-02-11 14:07:06 +00:00
requested change
This commit is contained in:
parent
9bdc390339
commit
b685c48ed4
@ -28,10 +28,10 @@ macro_rules! call_with_error_msg {
|
|||||||
($instance:expr, $method:ident, $error_msg:expr $(, $arg:expr)*) => {
|
($instance:expr, $method:ident, $error_msg:expr $(, $arg:expr)*) => {
|
||||||
{
|
{
|
||||||
let new_instance: &mut RLNWrapper = $instance.process();
|
let new_instance: &mut RLNWrapper = $instance.process();
|
||||||
if new_instance.instance.$method($($arg.process()),*).is_ok() {
|
if let Err(err) = new_instance.instance.$method($($arg.process()),*) {
|
||||||
Ok(())
|
Err(format!("Msg: {:#?}, Error: {:#?}", $error_msg, err))
|
||||||
} else {
|
} else {
|
||||||
Err($error_msg)
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user