[refactor] Refactoring Status static methods to format message using fmt(#9533)
This commit is contained in:
@ -74,9 +74,7 @@ Status EsHttpScanNode::prepare(RuntimeState* state) {
|
||||
_runtime_state = state;
|
||||
_tuple_desc = state->desc_tbl().get_tuple_descriptor(_tuple_id);
|
||||
if (_tuple_desc == nullptr) {
|
||||
std::stringstream ss;
|
||||
ss << "Failed to get tuple descriptor, _tuple_id=" << _tuple_id;
|
||||
return Status::InternalError(ss.str());
|
||||
return Status::InternalError("Failed to get tuple descriptor, _tuple_id={}", _tuple_id);
|
||||
}
|
||||
|
||||
// set up column name vector for ESScrollQueryBuilder
|
||||
|
||||
Reference in New Issue
Block a user