devices: clarify error on attaching non-persistent device to stopped VM

Fixes QubesOS/qubes-issues#3195
This commit is contained in:
Marek Marczykowski-Górecki 2017-10-20 02:38:52 +02:00
parent 9a9452ae3a
commit 433430884d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -244,7 +244,7 @@ class DeviceCollection(object):
if not device_assignment.persistent and self._vm.is_halted():
raise qubes.exc.QubesVMNotRunningError(self._vm,
"Devices can only be attached non-persistent to a running vm")
"VM not running, can only attach device with persistent flag")
device = device_assignment.device
if device in self.assignments():
raise DeviceAlreadyAttached(