0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::json: Better handling and message for assignment failure to tuple.

This commit is contained in:
Jason Volk 2017-10-03 03:59:14 -07:00
parent 67dba9c471
commit c722ff6e71

View file

@ -614,6 +614,7 @@ void>::type
_assign(dst &d,
src&& s)
{
assert(!s.empty());
d = byte_view<dst>(std::forward<src>(s));
}
@ -660,8 +661,9 @@ try
}
catch(const std::exception &e)
{
throw parse_error("failed to set member '%s': %s",
throw parse_error("failed to set member '%s' (from %s): %s",
key,
demangle<V>(),
e.what());
}