diff options
| author | John Snow <jsnow@redhat.com> | 2022-03-21 16:16:02 -0400 |
|---|---|---|
| committer | Hanna Reitz <hreitz@redhat.com> | 2022-03-22 10:14:23 +0100 |
| commit | 062fd1dad2640d1c2522b71ddde4ba0bbdc8c6d9 (patch) | |
| tree | 880e9ff717df3bbcb1eea604b39334d945ad111d /python/qemu/utils/qemu_ga_client.py | |
| parent | be73231ba836c34502af5ff419ab3ca23c60a6db (diff) | |
| download | focaccia-qemu-062fd1dad2640d1c2522b71ddde4ba0bbdc8c6d9.tar.gz focaccia-qemu-062fd1dad2640d1c2522b71ddde4ba0bbdc8c6d9.zip | |
python/utils: add VerboseProcessError
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 <jsnow@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220321201618.903471-3-jsnow@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'python/qemu/utils/qemu_ga_client.py')
0 files changed, 0 insertions, 0 deletions