From a187299a6db82450f094da9cd8f3fb7b590cb452 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 26 Apr 2004 18:11:58 +0000 Subject: [PATCH] Include strerror(errno) with tls syscall errors svn:r1718 --- trunk/src/common/tortls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/src/common/tortls.c b/trunk/src/common/tortls.c index e3078a7563..5b6a58de85 100644 --- a/trunk/src/common/tortls.c +++ b/trunk/src/common/tortls.c @@ -97,7 +97,8 @@ tor_tls_get_error(tor_tls *tls, int r, int extra, case SSL_ERROR_SYSCALL: if (extra&CATCH_SYSCALL) return _TOR_TLS_SYSCALL; - log(severity, "TLS error: (errno=%d)",errno); + log(severity, "TLS error: (errno=%d: %s)",errno, + strerror(errno)); tls_log_errors(severity, doing); return TOR_TLS_ERROR; case SSL_ERROR_ZERO_RETURN: