diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-19 15:39:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-03-21 16:41:10 +0000 |
| commit | e45c0adefff0882d074454b613f9cffdc9687987 (patch) | |
| tree | e1fe24c13718aceecc232235340ffd0355cd0d49 | |
| parent | 71996ad20ef1f577b9945cdf62f17455238f3327 (diff) | |
Better error.
| -rw-r--r-- | src/lib/poznan_encoder.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/poznan_encoder.cc b/src/lib/poznan_encoder.cc index 2f82655c2..3d063be18 100644 --- a/src/lib/poznan_encoder.cc +++ b/src/lib/poznan_encoder.cc @@ -28,6 +28,7 @@ #include "i18n.h" using std::string; +using std::cout; using boost::shared_ptr; PoznanEncoder::PoznanEncoder () @@ -67,11 +68,11 @@ void * PoznanEncoder::open_library (string library_name) { /* XXX: need cross-platform implementation of dlopen etc. */ - + library_name = "libdcpomatic-" + library_name + ".so"; void* lib = dlopen (library_name.c_str(), RTLD_LAZY | RTLD_GLOBAL); if (!lib) { - throw JPEG2000EncoderUnavailableException (name(), "could not find " + library_name); + throw JPEG2000EncoderUnavailableException (name(), "could not find " + library_name + " (" + dlerror() + ")"); } return lib; } |
