Skip to content

Commit 24cca5f

Browse files
committed
fix error message for size_mismatch
1 parent 8957955 commit 24cca5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/boost/json/error.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ enum class error
142142
/// `double` was expected during conversion
143143
not_double,
144144

145-
/// JSON array has size incompatible with target
145+
/// source composite has size incompatible with target
146146
size_mismatch,
147147

148148
/// none of the possible conversions were successful

include/boost/json/impl/error.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ case error::not_string: return "value is not a string";
8181
case error::not_int64: return "value is not a std::int64_t number";
8282
case error::not_uint64: return "value is not a std::uint64_t number";
8383
case error::not_double: return "value is not a double";
84-
case error::size_mismatch: return "array size does not match target size";
84+
case error::size_mismatch: return "source composite size does not match target size";
8585
case error::exhausted_variants: return "exhausted all variants";
8686
case error::unknown_name: return "unknown name";
8787
}

0 commit comments

Comments
 (0)