On Thu, Mar 03, 2022 at 03:58:59PM -0500, John Snow wrote: > This adds an Exception that extends the Python stdlib > subprocess.CalledProcessError. > > The difference is that the str() method of this exception also adds the > stdout/stderr logs. In effect, if this exception goes unhandled, Python > will print the output in a visually distinct wrapper to the terminal so > that it's easy to spot in a sea of traceback information. > > Signed-off-by: John Snow <js...@redhat.com> > --- > python/qemu/utils/__init__.py | 36 +++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) >
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org