Signed-off-by: Henry C Chang <[email protected]>
---
 src/pybind/rados.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pybind/rados.py b/src/pybind/rados.py
index 3d00938..e43cb04 100755
--- a/src/pybind/rados.py
+++ b/src/pybind/rados.py
@@ -450,7 +450,7 @@ written." % (self.name, ret, length))
         ret = self.librados.rados_read(self.io, c_char_p(key), ret_buf,
                 c_size_t(length), c_uint64(offset))
         if ret < 0:
-            raise make_ex("Ioctx.read(%s): failed to read %s" % (self.name, 
key))
+            raise make_ex(ret, "Ioctx.read(%s): failed to read %s" % 
(self.name, key))
         return ctypes.string_at(ret_buf, ret)
 
     def get_stats(self):
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to