martynsmith/node-irc — Issue #48: Handle erroneous commands gracefully
Author: akavlie
Created: 2011-10-28 06:20:28+00:00
State: open

Sent this through client.send()

/leave #pocoo

Oops, should have been `/part`. Rather than gracefully handling the error though, I get this:

/Users/akavlie/node_modules/irc/lib/irc.js:907
throw err;
^
Error: Uncaught, unspecified 'error' event.
at Client.emit (events.js:47:15)
at Client. (/Users/akavlie/node_modules/irc/lib/irc.js:818:26)
at Client.emit (events.js:64:17)
at /Users/akavlie/node_modules/irc/lib/irc.js:904:22
at Array.forEach (native)
at Socket. (/Users/akavlie/node_modules/irc/lib/irc.js:901:15)
at Socket.emit (events.js:64:17)
at Socket._onReadable (net.js:673:31)
at IOWatcher.onReadable [as callback] (net.js:177:10)

running on 0.2.1 via npm