mirror of
https://github.com/transmission/transmission
synced 2025-02-04 13:32:19 +00:00
more helpful error message
This commit is contained in:
parent
99e8b9a19d
commit
f8f4e1fc32
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue