mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-15 03:14:56 -05:00
display error in proxy
This commit is contained in:
parent
88c20cf795
commit
86397e7d06
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue