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:
Marek Marczykowski-Górecki 2020-08-05 04:38:59 +02:00
parent 4acf69e8ec
commit 0eb458109c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -196,7 +196,8 @@ class AdminVM(qubes.vm.BaseVM):
.. seealso:
:py:meth:`qubes.vm.qubesvm.QubesVM.start`
''' # 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):
'''Does nothing.