From 7785fc53c4f98e29f990efe01cd310322aad2655 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 6 Jun 2013 13:56:54 -0700 Subject: [PATCH] rados.py: make exception with errno string instead of int Signed-off-by: Dan Mick --- 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 34ac4ae8ade..d9980c26504 100644 --- a/src/pybind/rados.py +++ b/src/pybind/rados.py @@ -86,7 +86,7 @@ def make_ex(ret, msg): if ret in errors: return errors[ret](msg) else: - return Error(msg + (": error code %d" % ret)) + return Error(msg + (": errno %s" % errno.errorcode[ret])) class rados_pool_stat_t(Structure): """ Usage information for a pool """ -- 2.47.3