log plugin load failures

When plugins fail loading they currently are silently ignored - this
commit adds stderr logging output.
This commit is contained in:
Vorschreibung
2024-06-22 23:27:30 +05:00
committed by Garux
parent ac7b4d3cd4
commit 0a67a8c399
+4
View File
@@ -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() ) {