# HG changeset patch # User Chris Cannam # Date 1583236072 0 # Node ID 45b2bd15d8ae98b7adbc3065224a2136d9eab33d # Parent a7e6d747fd3f13ba05ab6dd4a86776c6bfc1827c Show error code if library can't be loaded diff -r a7e6d747fd3f -r 45b2bd15d8ae src/vamp-hostsdk/Files.cpp --- a/src/vamp-hostsdk/Files.cpp Tue Nov 12 14:12:56 2019 +0000 +++ b/src/vamp-hostsdk/Files.cpp Tue Mar 03 11:47:52 2020 +0000 @@ -173,7 +173,7 @@ #endif if (!handle) { cerr << "Vamp::HostExt: Unable to load library \"" - << path << "\"" << endl; + << path << "\": error code " << GetLastError() << endl; } #else handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL);