From 2e9e552a068973fb7ccea02be544ca16f89f0335 Mon Sep 17 00:00:00 2001 From: Pranjal Raihan Date: Thu, 26 Dec 2024 14:48:22 -0800 Subject: [PATCH] Fix build failure Summary: Code broke due to land race :( Differential Revision: D67658097 fbshipit-source-id: 7639787c33f37dbe6af6190b0927ecfcadb557b3 --- thrift/compiler/whisker/parser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thrift/compiler/whisker/parser.cc b/thrift/compiler/whisker/parser.cc index fd5b3442580..da7b19aaa0a 100644 --- a/thrift/compiler/whisker/parser.cc +++ b/thrift/compiler/whisker/parser.cc @@ -619,11 +619,11 @@ class parser { parse_result condition = parse_expression(scan); if (!condition.has_value()) { - report_expected(scan, fmt::format("expression in else-if clause")); + report_expected(scan, "expression in else-if clause"); } ast::expression cond = std::move(condition).consume_and_advance(&scan); if (!try_consume_token(&scan, tok::close)) { - report_expected(scan, fmt::format("{} in else-if clause", tok::close)); + report_expected(scan, "{} in else-if clause", tok::close); } scan = scan.make_fresh();