commit 7f1315d591575f671ad3711a3337f01f4354c63e
Author: Oswald Buddenhagen <o...@kde.org>
Date:   Mon Apr 5 13:08:17 2010 +0200

    beautify error messages
    
    don't print the error number - we print the error string anyway, so it
    adds no value.
    add some whitespace to the messages as well.

 src/drv_imap.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index a71c1a3..0dc3be7 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -360,14 +360,14 @@ socket_perror( const char *func, Socket_t *sock, int ret )
                case SSL_ERROR_SSL:
                        if ((err = ERR_get_error()) == 0) {
                                if (ret == 0)
-                                       error( "SSL_%s:got EOF\n", func );
+                                       error( "SSL_%s: got EOF\n", func );
                                else
-                                       error( "SSL_%s:%d:%s\n", func, errno, 
strerror(errno) );
+                                       error( "SSL_%s: %s\n", func, 
strerror(errno) );
                        } else
-                               error( "SSL_%s:%d:%s\n", func, err, 
ERR_error_string( err, 0 ) );
+                               error( "SSL_%s: %s\n", func, ERR_error_string( 
err, 0 ) );
                        return;
                default:
-                       error( "SSL_%s:%d:unhandled SSL error\n", func, err );
+                       error( "SSL_%s: unhandled SSL error %d\n", func, err );
                        break;
                }
                return;

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to