From 0a67a8c39914dd5796ae27891652100ebee0359b Mon Sep 17 00:00:00 2001 From: Vorschreibung Date: Thu, 20 Jun 2024 05:40:44 +0200 Subject: [PATCH] log plugin load failures When plugins fail loading they currently are silently ignored - this commit adds stderr logging output. --- radiant/server.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radiant/server.cpp b/radiant/server.cpp index 528b5123..16080abe 100644 --- a/radiant/server.cpp +++ b/radiant/server.cpp @@ -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() ) {