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 {
|
||||
null()
|
||||
} else {
|
||||
make_return_code_msg(errno::ERR_CALLBACK_FAILED, "Failed to block input")
|
||||
make_return_code_msg(errno::ERR_CALLBACK_FAILED, "")
|
||||
}
|
||||
} else {
|
||||
make_return_code_msg(
|
||||
|
@ -79,7 +79,7 @@ macro_rules! early_return_value {
|
||||
match $e {
|
||||
Err(e) => return make_return_code_msg(
|
||||
errno::$code,
|
||||
&format!("Failed to {} '{:?}'", format_args!($($arg)*), e),
|
||||
&format!("Failed to {} '{}'", format_args!($($arg)*), e),
|
||||
),
|
||||
Ok(v) => v,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user