[PATCH 37/37] Print error message from RTSLibErrors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



log.error() expects a string.

Signed-off-by: Andy Grover <agrover@xxxxxxxxxx>
---
 targetcli/ui_node.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/targetcli/ui_node.py b/targetcli/ui_node.py
index 4f73f1b..54e11fc 100644
--- a/targetcli/ui_node.py
+++ b/targetcli/ui_node.py
@@ -80,7 +80,7 @@ class UINode(ConfigNode):
             result = ConfigNode.execute_command(self, command,
                                                 pparams, kparams)
         except RTSLibError, msg:
-            self.shell.log.error(msg)
+            self.shell.log.error(msg.message)
         else:
             self.shell.log.debug("Command %s succeeded." % command)
             return result
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux