From 57ce0626184531cca7f093793366cb9f5632f414 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Thu, 2 Jan 2025 11:56:22 +0800 Subject: [PATCH] Remove redundant quote in type chec. (#11130) --- src/common/json_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/json_utils.h b/src/common/json_utils.h index a2a8a3cae88c..812aa1f2e57a 100644 --- a/src/common/json_utils.h +++ b/src/common/json_utils.h @@ -43,7 +43,7 @@ std::enable_if_t TypeCheckError() { template void TypeCheck(Json const &value, StringView name) { if (!detail::TypeCheckImpl(value)) { - LOG(FATAL) << "Invalid type for: `" << name << "`, expecting one of the: {`" + LOG(FATAL) << "Invalid type for: `" << name << "`, expecting one of the: {" << detail::TypeCheckError() << "}, got: `" << value.GetValue().TypeStr() << "`"; }