fix: error in admin function is not formatted properly (#4820)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2024-10-11 18:02:45 +08:00
committed by GitHub
parent 7dd0e3ab37
commit a61c0bd1d8

View File

@@ -59,7 +59,7 @@ impl StatementExecutor {
.map(|arg| {
let FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Value(value))) = arg else {
return error::BuildAdminFunctionArgsSnafu {
msg: "unsupported function arg {arg}",
msg: format!("unsupported function arg {arg}"),
}
.fail();
};
@@ -200,7 +200,7 @@ fn values_to_vectors_by_valid_types(
}
error::BuildAdminFunctionArgsSnafu {
msg: "failed to cast {value}",
msg: format!("failed to cast {value}"),
}
.fail()
})