diff --git a/examples/proxy/proxy.js b/examples/proxy/proxy.js index f6091ec..3bd6e67 100644 --- a/examples/proxy/proxy.js +++ b/examples/proxy/proxy.js @@ -85,9 +85,10 @@ srv.on('login', function(client) { if(!endedTargetClient) targetClient.end("End"); }); - client.on('error', function() { + client.on('error', function(err) { endedClient = true; console.log('Connection error by client', '(' + addr + ')'); + console.log(err.stack); if(!endedTargetClient) targetClient.end("Error"); });