[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

@ -410,9 +410,7 @@ Status Expr::create_expr(ObjectPool* pool, const TExprNode& texpr_node, Expr** e
}
default:
std::stringstream os;
os << "Unknown expr node type: " << texpr_node.node_type;
return Status::InternalError(os.str());
return Status::InternalError("Unknown expr node type: {}", texpr_node.node_type);
}
}