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() << "`"; }