From a5606ca435869f3ccd9b9932349d52a8cbccc386 Mon Sep 17 00:00:00 2001 From: Henry C Chang Date: Thu, 8 Dec 2011 22:35:07 +0800 Subject: [PATCH] pybind: trivial fix of missing argument Signed-off-by: Henry C Chang --- src/pybind/rados.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/rados.py b/src/pybind/rados.py index 3d0093889d5..e43cb0409ca 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):