From 540adbb8fd8cf250628dfbb772cb714ba2626332 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 1 Dec 2013 17:57:33 +0100 Subject: [PATCH] make host resolution error messages more useful in non-ipv6 builds --- src/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.c b/src/socket.c index 07d9bb7..26249cd 100644 --- a/src/socket.c +++ b/src/socket.c @@ -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; }