mirror of https://github.com/xemu-project/xemu.git
![]() This allows us to pack in some extra information about the failure, which guarantees that if the caller did not *intentionally* cause a failure (by capturing this Exception), some pretty good clues will be printed at the bottom of the traceback information. This will help make failures in the event of a non-negative return code more obvious when they go unhandled; the current behavior in _post_shutdown() is to print a warning message only in the event of signal-based terminations (for negative return codes). (Note: In Python, catching BaseException instead of Exception catches a broader array of Exception events, including SystemExit and KeyboardInterrupt. We do not want to "wrap" such exceptions as a VMLaunchFailure, because that will 'downgrade' the exception from a BaseException to a regular Exception. We do, however, want to perform cleanup in either case, so catch on the broadest scope and wrap-and-re-raise only in the more targeted scope.) Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 20220201041134.1237016-3-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com> |
||
---|---|---|
.. | ||
block-status-cache | ||
block-status-cache.out | ||
fuse-allow-other | ||
fuse-allow-other.out | ||
image-fleecing | ||
image-fleecing.out | ||
migrate-bitmaps-postcopy-test | ||
migrate-bitmaps-postcopy-test.out | ||
migrate-bitmaps-test | ||
migrate-bitmaps-test.out | ||
migrate-during-backup | ||
migrate-during-backup.out | ||
migration-permissions | ||
migration-permissions.out | ||
mirror-ready-cancel-error | ||
mirror-ready-cancel-error.out | ||
mirror-top-perms | ||
mirror-top-perms.out | ||
nbd-qemu-allocation | ||
nbd-qemu-allocation.out | ||
nbd-reconnect-on-open | ||
nbd-reconnect-on-open.out | ||
parallels-read-bitmap | ||
parallels-read-bitmap.out | ||
qemu-img-bitmaps | ||
qemu-img-bitmaps.out | ||
qsd-jobs | ||
qsd-jobs.out | ||
remove-bitmap-from-backing | ||
remove-bitmap-from-backing.out | ||
stream-error-on-reset | ||
stream-error-on-reset.out |