make host resolution error messages more useful in non-ipv6 builds
This commit is contained in:
parent
b6949c64d2
commit
540adbb8fd
|
@ -369,7 +369,7 @@ socket_connect( conn_t *sock, void (*cb)( int ok, void *aux ) )
|
|||
infon( "Resolving %s... ", conf->host );
|
||||
he = gethostbyname( conf->host );
|
||||
if (!he) {
|
||||
error( "IMAP error: Cannot resolve server '%s'\n", conf->host );
|
||||
error( "IMAP error: Cannot resolve server '%s': %s\n", conf->host, hstrerror( h_errno ) );
|
||||
socket_connect_bail( sock );
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user