From 43e26ecb7cdb04cf7a9c7e87fa7902b7ebe3f5ce Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 26 Nov 2008 17:37:16 +0000 Subject: Cluster.cpp: Fixed last-node-standing logic, better logging. Shlib.cpp: added file name to errors messages. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720924 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/posix/Shlib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/sys/posix/Shlib.cpp') diff --git a/cpp/src/qpid/sys/posix/Shlib.cpp b/cpp/src/qpid/sys/posix/Shlib.cpp index 1552aa06b5..62dbfb3dd9 100644 --- a/cpp/src/qpid/sys/posix/Shlib.cpp +++ b/cpp/src/qpid/sys/posix/Shlib.cpp @@ -31,7 +31,7 @@ void Shlib::load(const char* name) { handle = ::dlopen(name, RTLD_NOW); const char* error = ::dlerror(); if (error) { - throw Exception(QPID_MSG(error)); + throw Exception(QPID_MSG(error << ": " << name)); } } @@ -52,7 +52,7 @@ void* Shlib::getSymbol(const char* name) { void* sym = ::dlsym(handle, name); const char* error = ::dlerror(); if (error) - throw Exception(QPID_MSG(error)); + throw Exception(QPID_MSG(error << ": " << name)); return sym; } -- cgit v1.2.1