mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-30 16:45:51 +00:00
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:
@@ -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),
|
||||
}
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user