summaryrefslogtreecommitdiff
path: root/rtslib/tcm.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtslib/tcm.py')
-rw-r--r--rtslib/tcm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/tcm.py b/rtslib/tcm.py
index 70b0a7f..e30c193 100644
--- a/rtslib/tcm.py
+++ b/rtslib/tcm.py
@@ -676,7 +676,7 @@ class BlockStorageObject(StorageObject):
def _configure(self, dev, wwn, readonly):
self._check_self()
if get_blockdev_type(dev) != 0:
- raise RTSLibError("Device is not a TYPE_DISK block device")
+ raise RTSLibError("Device %s is not a TYPE_DISK block device" % dev)
if is_dev_in_use(dev):
raise RTSLibError("Cannot configure StorageObject because "
+ "device %s is already in use" % dev)