qvm-start --debug don't catch exceptions
This commit is contained in:
parent
3e30dc17cb
commit
8037182dcd
@ -133,13 +133,17 @@ def main(args=None):
|
||||
if args.debug:
|
||||
vm.debug = args.debug
|
||||
|
||||
try:
|
||||
if args.debug:
|
||||
vm.start(
|
||||
preparing_dvm=args.preparing_dvm,
|
||||
start_guid=args.start_guid)
|
||||
except qubes.exc.QubesException as e:
|
||||
parser.error_runtime('Qubes error: {!r}'.format(e))
|
||||
|
||||
else:
|
||||
try:
|
||||
vm.start(
|
||||
preparing_dvm=args.preparing_dvm,
|
||||
start_guid=args.start_guid)
|
||||
except qubes.exc.QubesException as e:
|
||||
parser.error_runtime('Qubes error: {!r}'.format(e))
|
||||
return 0
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user