plugin_framework, test block_input
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
c05e87b3b6
commit
6dc02084c2
@ -28,7 +28,7 @@ pub(super) fn ext_support_callback(
|
|||||||
if crate::server::plugin_block_input(peer, block) == block {
|
if crate::server::plugin_block_input(peer, block) == block {
|
||||||
null()
|
null()
|
||||||
} else {
|
} else {
|
||||||
make_return_code_msg(errno::ERR_CALLBACK_FAILED, "Failed to block input")
|
make_return_code_msg(errno::ERR_CALLBACK_FAILED, "")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
make_return_code_msg(
|
make_return_code_msg(
|
||||||
|
@ -79,7 +79,7 @@ macro_rules! early_return_value {
|
|||||||
match $e {
|
match $e {
|
||||||
Err(e) => return make_return_code_msg(
|
Err(e) => return make_return_code_msg(
|
||||||
errno::$code,
|
errno::$code,
|
||||||
&format!("Failed to {} '{:?}'", format_args!($($arg)*), e),
|
&format!("Failed to {} '{}'", format_args!($($arg)*), e),
|
||||||
),
|
),
|
||||||
Ok(v) => v,
|
Ok(v) => v,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user