vm: fix run_service error reporting
qubesadmin.exc.QubesVMError (in contrast to qubesa.exc.QubesVMError) does not take VM instance as first argument.
This commit is contained in:
parent
88b559d985
commit
f386d45695
@ -248,9 +248,9 @@ class QubesVM(qubesadmin.base.PropertyHolder):
|
||||
stdouterr = p.communicate(input=input)
|
||||
|
||||
if p.returncode:
|
||||
raise qubesadmin.exc.QubesVMError(self,
|
||||
'service {!r} failed with retcode {!r}; '
|
||||
'stdout={!r} stderr={!r}'.format(
|
||||
raise qubesadmin.exc.QubesVMError(
|
||||
'VM {}: service {!r} failed with retcode {!r}; '
|
||||
'stdout={!r} stderr={!r}'.format(self,
|
||||
service, p.returncode, *stdouterr))
|
||||
|
||||
return stdouterr
|
||||
|
Loading…
Reference in New Issue
Block a user