mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 13:14:41 -04:00
display error in proxy
This commit is contained in:
parent
88c20cf795
commit
86397e7d06
@ -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");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user