Skip to content
Snippets Groups Projects
Commit fc6e9111 authored by Steven Murray's avatar Steven Murray
Browse files

Added more information to 'Failed to connect message'

parent 4d3e0d02
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment