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:
parent
67dba9c471
commit
c722ff6e71
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue