diff options
| author | Alan Conway <aconway@apache.org> | 2008-11-26 17:37:16 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-11-26 17:37:16 +0000 |
| commit | 43e26ecb7cdb04cf7a9c7e87fa7902b7ebe3f5ce (patch) | |
| tree | 604fadb84ec6df689ca25b7e4ae7f2edf78f71b8 /cpp/src/qpid/sys/posix/Shlib.cpp | |
| parent | 300063322dd80c0dee30475de494afdb6a846d6a (diff) | |
| download | qpid-python-43e26ecb7cdb04cf7a9c7e87fa7902b7ebe3f5ce.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/sys/posix/Shlib.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/posix/Shlib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
