antoine-pous / node-teamspeak3-client

😱 A TeamSpeak3 ServerQuery client with anti-ban feature, prepared statements and a lot of cool stuffs
ISC License
5 stars 0 forks source link

Catch error #12

Closed XeroxDev closed 6 years ago

XeroxDev commented 6 years ago

Hey, I'm back :D

I only would report a Bug again:

I'm directly:

let logged = await TS3Client.execute("login", [user, pass]).catch((e: iError) => {
        console.log(e.id, e.msg);
        shutdown();
    });

Won't work, It is not jumping into the catch. Either it crashes completly or if you catch the errors with on("error") it jumps only into this (this catches all errors), but the problem is now... In your example above, you check so, if the user can login, but this is still not working.

Kind regards XeroxDev

antoine-pous commented 6 years ago

I can reproduce this issue, it will be fixed in the next release :)