From 77ceadc1eb625f0069b71d854b7fe3ba9e636e01 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@699031 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Daemon.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/broker/Daemon.cpp b/qpid/cpp/src/qpid/broker/Daemon.cpp index c311730f76..1796c8db04 100644 --- a/qpid/cpp/src/qpid/broker/Daemon.cpp +++ b/qpid/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