plugin_framework, test block_input

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-05-04 17:13:15 +08:00
parent c05e87b3b6
commit 6dc02084c2
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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,
}