From 00faa677e76f5c8af2f7494d96aded39fb1dcf2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8A=A0=E9=87=8C?= <xiaofeng.mxf@taobao.com>
Date: Fri, 14 Nov 2014 10:11:57 +0800
Subject: [PATCH] update error display

---
 lib/requestHandler.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/requestHandler.js b/lib/requestHandler.js
index 03e6640..f8d1ee0 100644
--- a/lib/requestHandler.js
+++ b/lib/requestHandler.js
@@ -307,7 +307,7 @@ function connectReqHandler(req, socket, head){
                 }); 
 
                 conn.on("error",function(e){
-                    console.log("err when connect to __host".replace(/__host/,host));
+                    console.log("err when connect to %j, %j" , host , e);
                 });  
             }catch(e){
                 console.log("err when connect to remote https server (__host)".replace(/__host/,host));