qvm-tools: fix error reporting in qvm-kill
This commit is contained in:
parent
73301a67c8
commit
25c425920c
@ -21,8 +21,8 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
from qubes.qubes import QubesVmCollection
|
from qubes.qubes import QubesVmCollection,QubesException
|
||||||
from optparse import OptionParser;
|
from optparse import OptionParser
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ def main():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
vm.force_shutdown()
|
vm.force_shutdown()
|
||||||
except (IOError, OSError) as err:
|
except (IOError, OSError, QubesException) as err:
|
||||||
print >> sys.stderr, "ERROR: {0}".format(err)
|
print >> sys.stderr, "ERROR: {0}".format(err)
|
||||||
exit (1)
|
exit (1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user