vm/adminvm: adjust exception raised by AdminVM.start()
Behave like any other running domain - raise qubes.exc.QubesVMNotHaltedError instead of generic qubes.exc.QubesVMError.
This commit is contained in:
parent
4acf69e8ec
commit
0eb458109c
@ -196,7 +196,8 @@ class AdminVM(qubes.vm.BaseVM):
|
|||||||
.. seealso:
|
.. seealso:
|
||||||
:py:meth:`qubes.vm.qubesvm.QubesVM.start`
|
:py:meth:`qubes.vm.qubesvm.QubesVM.start`
|
||||||
''' # pylint: disable=unused-argument,arguments-differ
|
''' # pylint: disable=unused-argument,arguments-differ
|
||||||
raise qubes.exc.QubesVMError(self, 'Cannot start Dom0 fake domain!')
|
raise qubes.exc.QubesVMNotHaltedError(
|
||||||
|
self, 'Cannot start Dom0 fake domain!')
|
||||||
|
|
||||||
def suspend(self):
|
def suspend(self):
|
||||||
'''Does nothing.
|
'''Does nothing.
|
||||||
|
Loading…
Reference in New Issue
Block a user