Commit 92e60927 authored by Steven Murray's avatar Steven Murray
Browse files

Added more information to 'Failed to connect message'

parent c0e46b29
......@@ -950,8 +950,9 @@ int castor::io::connectWithTimeout(
// Throw an exception if no file descriptor was set
if(!(pollFd.revents & POLLIN) && !(pollFd.revents & POLLOUT)) {
castor::exception::Exception ex(ECANCELED);
ex.getMessage() << "Failed to connect"
": poll() returned without an event";
ex.getMessage() << "Failed to connect: poll() returned without an event"
": pollFd.fd=" << pollFd.fd << ",pollFd.events=" << pollFd.events <<
",pollFd.revents=" << pollFd.revents;
throw ex;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment