Skip to content

Commit

Permalink
Fix issue #291
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed May 1, 2024
1 parent 45589d5 commit be3d29d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libraries/JANA/Services/JPluginLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ void JPluginLoader::attach_plugin(std::string soname) {
// Open shared object
void* handle = dlopen(soname.c_str(), RTLD_LAZY | RTLD_GLOBAL | RTLD_NODELETE);
if (!handle) {
LOG_DEBUG(m_logger) << dlerror() << LOG_END;
throw JException("Plugin dlopen() failed: %s", dlerror());
std::string err = dlerror();
LOG_DEBUG(m_logger) << "Plugin dlopen() failed: " << err << LOG_END;
throw JException("Plugin dlopen() failed: %s", err.c_str());
}

// Look for an InitPlugin symbol
Expand Down

0 comments on commit be3d29d

Please sign in to comment.