1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-04 21:43:03 +00:00

more helpful error message

This commit is contained in:
Charles Kerr 2007-12-15 03:17:50 +00:00
parent 99e8b9a19d
commit f8f4e1fc32

View file

@ -131,9 +131,11 @@ tr_netOpen( const struct in_addr * addr, tr_port_t port,
#endif
&& ( sockerrno != EINPROGRESS ) )
{
tr_err( "Couldn't connect socket (%s)", strerror( sockerrno ) );
tr_err( "Couldn't connect socket %d to %s, port %d (errno %d - %s)",
s, inet_ntoa(*addr), port,
sockerrno, strerror(sockerrno) );
tr_netClose( s );
return -1;
s = -1;
}
return s;