... so that's easier for a higher level application to handle
it.
Fixes: https://tracker.ceph.com/issues/46360
Signed-off-by: Ramana Raja <rraja@redhat.com>
cdef make_ex(ret, msg):
"""
- Translate a librados return code into an exception.
+ Translate a libcephfs return code into an exception.
:param ret: the return code
:type ret: int
if ret in errno_to_exception:
return errno_to_exception[ret](ret, msg)
else:
- return Error(msg + ': {} [Errno {:d}]'.format(os.strerror(ret), ret))
+ return OSError(ret, msg)
class DirEntry(namedtuple('DirEntry',