diff --git a/qubesadmin/vm/__init__.py b/qubesadmin/vm/__init__.py index 02838a6..482243e 100644 --- a/qubesadmin/vm/__init__.py +++ b/qubesadmin/vm/__init__.py @@ -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