diff --git a/power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp b/power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp index 00d02a04b..5e7025837 100644 --- a/power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp +++ b/power_grid_model_c/power_grid_model/include/power_grid_model/auxiliary/serialization/deserializer.hpp @@ -193,7 +193,7 @@ struct MapArrayVisitor : DefaultErrorVisitor> { static constexpr bool enable_array = std::same_as || std::same_as; static constexpr std::string_view static_err_msg = - enable_map ? (enable_array ? "Expect a map or array." : "Expect a map.") : "Expect an array."; + enable_map ? (enable_array ? "Map or an array expected." : "Map expected.") : "Array expected."; Idx size{}; bool is_map{}; @@ -226,7 +226,7 @@ struct MapArrayVisitor : DefaultErrorVisitor> { }; struct StringVisitor : DefaultErrorVisitor { - static constexpr std::string_view static_err_msg = "Expect a string."; + static constexpr std::string_view static_err_msg = "String expected."; std::string_view str{}; bool visit_str(const char* v, uint32_t size) { @@ -236,7 +236,7 @@ struct StringVisitor : DefaultErrorVisitor { }; struct BoolVisitor : DefaultErrorVisitor { - static constexpr std::string_view static_err_msg = "Expect a boolean."; + static constexpr std::string_view static_err_msg = "Boolean expected."; bool value{}; bool visit_boolean(bool v) { @@ -248,7 +248,7 @@ struct BoolVisitor : DefaultErrorVisitor { template struct ValueVisitor; template struct ValueVisitor : DefaultErrorVisitor> { - static constexpr std::string_view static_err_msg = "Expect an interger."; + static constexpr std::string_view static_err_msg = "Integer expected."; T& value; // NOLINT(cppcoreguidelines-avoid-const-or-ref-data-members) @@ -270,7 +270,7 @@ template struct ValueVisitor : DefaultErrorVisitor struct ValueVisitor : DefaultErrorVisitor> { - static constexpr std::string_view static_err_msg = "Expect a number."; + static constexpr std::string_view static_err_msg = "Number expected."; double& value; // NOLINT(cppcoreguidelines-avoid-const-or-ref-data-members) @@ -294,7 +294,7 @@ template <> struct ValueVisitor : DefaultErrorVisitor struct ValueVisitor> : DefaultErrorVisitor>> { - static constexpr std::string_view static_err_msg = "Expect an array of 3 numbers."; + static constexpr std::string_view static_err_msg = "Array of 3 numbers expected."; RealValue& value; // NOLINT(cppcoreguidelines-avoid-const-or-ref-data-members) Idx idx{};