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( ...@@ -950,8 +950,9 @@ int castor::io::connectWithTimeout(
// Throw an exception if no file descriptor was set // Throw an exception if no file descriptor was set
if(!(pollFd.revents & POLLIN) && !(pollFd.revents & POLLOUT)) { if(!(pollFd.revents & POLLIN) && !(pollFd.revents & POLLOUT)) {
castor::exception::Exception ex(ECANCELED); castor::exception::Exception ex(ECANCELED);
ex.getMessage() << "Failed to connect" ex.getMessage() << "Failed to connect: poll() returned without an event"
": poll() returned without an event"; ": pollFd.fd=" << pollFd.fd << ",pollFd.events=" << pollFd.events <<
",pollFd.revents=" << pollFd.revents;
throw ex; 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