From 433430884d124cb428a8b28506e39b3e2ce5779c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 20 Oct 2017 02:38:52 +0200 Subject: [PATCH] devices: clarify error on attaching non-persistent device to stopped VM Fixes QubesOS/qubes-issues#3195 --- qubes/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/devices.py b/qubes/devices.py index d0623791..565f325c 100644 --- a/qubes/devices.py +++ b/qubes/devices.py @@ -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(