[refactor] Refactoring Status static methods to format message using fmt(#9533)

This commit is contained in:
Tiewei Fang
2022-07-02 18:58:23 +08:00
committed by GitHub
parent 143f519ae2
commit c9f86bc7e2
181 changed files with 983 additions and 1273 deletions

View File

@ -267,10 +267,10 @@ private:
block.replace_by_position(result, std::move(return_column));
return Status::OK();
}
return Status::RuntimeError(
fmt::format("execute failed or unsupported types for function {}({}, {})",
get_name(), block.get_by_position(arguments[0]).type->get_name(),
block.get_by_position(arguments[1]).type->get_name()));
return Status::RuntimeError("execute failed or unsupported types for function {}({}, {})",
get_name(),
block.get_by_position(arguments[0]).type->get_name(),
block.get_by_position(arguments[1]).type->get_name());
}
};