fix: Change error style in Config (#2314)

Fix: #1886

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Co-authored-by: Alex Kremer <akremer@ripple.com>
Co-authored-by: Sergey Kuznetsov <skuznetsov@ripple.com>
This commit is contained in:
emrearıyürek
2025-09-02 13:14:37 +03:00
committed by GitHub
parent 3df28f42ec
commit 402ab29a73
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ struct Error {
*/
Error(std::string_view key, std::string_view err)
: error{
fmt::format("{} {}", key, err),
fmt::format("The value of {} {}", key, err),
}
{
}

View File

@@ -446,7 +446,7 @@ TEST_F(ClioConfigDefinitionParseArrayTest, missingRequiredFields)
auto const result = config.parse(configFile);
ASSERT_TRUE(result.has_value());
EXPECT_EQ(result->size(), 1);
EXPECT_THAT(result->at(0).error, testing::StartsWith("array.[].int"));
EXPECT_THAT(result->at(0).error, testing::StartsWith("The value of array.[].int"));
}
TEST_F(ClioConfigDefinitionParseArrayTest, missingAllRequiredFields)
@@ -463,7 +463,7 @@ TEST_F(ClioConfigDefinitionParseArrayTest, missingAllRequiredFields)
auto const result = config.parse(configFile);
ASSERT_TRUE(result.has_value());
EXPECT_EQ(result->size(), 1);
EXPECT_THAT(result->at(0).error, testing::StartsWith("array.[].int"));
EXPECT_THAT(result->at(0).error, testing::StartsWith("The value of array.[].int"));
}
TEST(ClioConfigDefinitionParse, unexpectedFields)