diff options
author | Alan Conway <aconway@apache.org> | 2008-04-23 15:31:57 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-23 15:31:57 +0000 |
commit | 100150d5f53264f8cef2773eb7415291dbadb238 (patch) | |
tree | 821389c09105a707c918e43be536ed660ca022e5 /cpp/src/qpid/DataDir.cpp | |
parent | c25d4ec64b056134bb730932b30f382ca3caa008 (diff) | |
download | qpid-python-100150d5f53264f8cef2773eb7415291dbadb238.tar.gz |
- SequenceSet implemented on RangeSet.
- Reduced #include dependencides on SequenceSet.h
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@650906 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/DataDir.cpp')
-rw-r--r-- | cpp/src/qpid/DataDir.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/qpid/DataDir.cpp b/cpp/src/qpid/DataDir.cpp index abf9b061e4..5fa26082b3 100644 --- a/cpp/src/qpid/DataDir.cpp +++ b/cpp/src/qpid/DataDir.cpp @@ -54,10 +54,8 @@ DataDir::DataDir (std::string path) : throw Exception ("Data directory is locked by another process"); if (errno == EACCES) throw Exception ("Insufficient privileges for data directory"); - - std::ostringstream oss; - oss << "Error locking data directory: errno=" << errno; - throw Exception (oss.str ()); + throw Exception( + QPID_MSG("Error locking " << lockFile << ": " << strError(errno))); } QPID_LOG (info, "Locked data directory: " << dirPath); |