diff --git a/include/ircd/json/tuple.h b/include/ircd/json/tuple.h index 077473ab7..6a6ac32fd 100644 --- a/include/ircd/json/tuple.h +++ b/include/ircd/json/tuple.h @@ -614,6 +614,7 @@ void>::type _assign(dst &d, src&& s) { + assert(!s.empty()); d = byte_view(std::forward(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(), e.what()); }