-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle erroneous commands gracefully #48
Comments
You should just bind a handler to catch errors? e.g. client.on('error', function(e) { do something here }) I think that'll stop it exploding On Fri, Oct 28, 2011 at 7:20 PM, Aaron Kavlie <
|
Ah, as long as that handler is bound it catches all errors? No explicit try/catch needed on my end? |
I think that's correct, let me know if you experience different :-) On Fri, Oct 28, 2011 at 7:31 PM, Aaron Kavlie <
|
@akavlie - are you okay to close this issue then? |
Sure, haven't tried the handler yet but I'll assume you're right. Thanks! |
Fixes #48. Unreal-specific, according to https://www.alien.net.au/irc/irc2numerics.html
Sent this through client.send()
Oops, should have been
/part
. Rather than gracefully handling the error though, I get this:running on 0.2.1 via npm
The text was updated successfully, but these errors were encountered: