From: Dan Mick Date: Thu, 6 Jun 2013 20:56:54 +0000 (-0700) Subject: rados.py: make exception with errno string instead of int X-Git-Tag: v0.65~136^2^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7785fc53c4f98e29f990efe01cd310322aad2655;p=ceph.git rados.py: make exception with errno string instead of int Signed-off-by: Dan Mick --- diff --git a/src/pybind/rados.py b/src/pybind/rados.py index 34ac4ae8ade1..d9980c265042 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 """