From 521288dae0e19b486fec5bf66ad291e993db4319 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 12 Nov 2007 23:48:26 +0000 Subject: [PATCH] added dlopen() failure logging to linux --- amxmodx/CModule.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/amxmodx/CModule.cpp b/amxmodx/CModule.cpp index 803f1ff7..77486406 100755 --- a/amxmodx/CModule.cpp +++ b/amxmodx/CModule.cpp @@ -219,6 +219,9 @@ bool CModule::queryModule() m_Handle = DLLOAD(m_Filename.c_str()); // load file if (!m_Handle) { +#if defined __linux__ + AMXXLOG_Log("[AMXX] Module \"%s\" failed to load (%s)", m_Filename.c_str(), dlerror()); +#endif m_Status = MODULE_BADLOAD; return false; }