mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
log plugin load failures
When plugins fail loading they currently are silently ignored - this commit adds stderr logging output.
This commit is contained in:
@@ -154,6 +154,10 @@ public:
|
||||
|
||||
DynamicLibrary( const char* filename ){
|
||||
m_library = dlopen( filename, RTLD_NOW );
|
||||
if ( failed() ) {
|
||||
globalErrorStream() << "LoadLibrary failed: '" << filename << "'\n";
|
||||
globalErrorStream() << "Module dlopen(3) Error: " << dlerror() << '\n';
|
||||
}
|
||||
}
|
||||
~DynamicLibrary(){
|
||||
if ( !failed() ) {
|
||||
|
||||
Reference in New Issue
Block a user