From 870a3e7c67f6e16805c83bc742eb4eebd0632f34 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 25 Sep 2008 17:42:20 +0000 Subject: Fixed incorrect exception message. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@699031 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Daemon.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/Daemon.cpp b/cpp/src/qpid/broker/Daemon.cpp index c311730f76..1796c8db04 100644 --- a/cpp/src/qpid/broker/Daemon.cpp +++ b/cpp/src/qpid/broker/Daemon.cpp @@ -128,9 +128,8 @@ uint16_t Daemon::wait(int timeout) { // parent waits for child. * Read the child's port number from the pipe. */ int desired_read = sizeof(uint16_t); - if ( desired_read > ::read(pipeFds[0], & port, desired_read) ) { - throw Exception("Cannot write lock file "+lockFile); - } + if ( desired_read > ::read(pipeFds[0], & port, desired_read) ) + throw Exception("Cannot read from child process."); /* * If the port number is 0, the child has put an error message -- cgit v1.2.1