From ad423635860c93021d8dcf8ba33cc86ddd006132 Mon Sep 17 00:00:00 2001 From: jevans Date: Tue, 21 Oct 2014 18:02:16 -0400 Subject: [PATCH] fix error message when no OpenJPEG library can be found, closes #284 --- glymur/lib/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glymur/lib/config.py b/glymur/lib/config.py index 431a00c..2254387 100644 --- a/glymur/lib/config.py +++ b/glymur/lib/config.py @@ -94,9 +94,9 @@ def load_library_handle(path): else: opj_lib = ctypes.CDLL(path) except (TypeError, OSError): - msg = '"Library {0}" could not be loaded. Operating in degraded mode.' - msg = msg.format(path) - warnings.warn(msg, UserWarning) + msg = 'The library specified by configuration file at {0} could not be ' + msg += 'loaded.' + warnings.warn(msg.format(path), UserWarning) opj_lib = None return opj_lib