changeset 535:45b2bd15d8ae

Show error code if library can't be loaded
author Chris Cannam
date Tue, 03 Mar 2020 11:47:52 +0000
parents a7e6d747fd3f
children 74c5b0bfa108
files src/vamp-hostsdk/Files.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);