On 4/23/20 11:00 AM, Markus Armbruster wrote:
The previous few commits have made this more obvious, and removed the
one exception. Time to clarify the documentation, and drop dead error
checking.
Signed-off-by: Markus Armbruster <arm...@redhat.com>
---
I guess the only other failures an output visitor might encounter are
out-of-memory, or invalid contents (such as a NaN in a 'number', or
invalid encoding in a string...), and aborting on those errors at the
point they happen rather than trying to return errp makes sense.
It makes for a nice conceptual result: input parsing fails on unexpected
input, but output visitors should never be used on invalid data.
Reviewed-by: Eric Blake <ebl...@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org