From: Yehuda Sadeh Date: Thu, 30 Jan 2014 00:05:17 +0000 (-0800) Subject: pybind/rados.py: improve error output X-Git-Tag: v0.76~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=70c7c9e600c545c6809577e0f2cc45b77c9ccdec;p=ceph.git pybind/rados.py: improve error output Fixes: 7264 When failing to load librados, output the exception. Signed-off-by: Yehuda Sadeh --- diff --git a/src/pybind/rados.py b/src/pybind/rados.py index a27fa02e3f0..0989ebb2e7e 100644 --- a/src/pybind/rados.py +++ b/src/pybind/rados.py @@ -200,8 +200,8 @@ Rados object in state %s." % (self.state)) #maybe find_library can not find it correctly on all platforms. try: self.librados = CDLL('librados.so.2') - except OSError: - raise EnvironmentError("Unable to find librados") + except OSError as e: + raise EnvironmentError("Unable to load librados: %s" % e) except: raise Error("Unexpected error") else: