pekim/tedious — pull request #37 by pdodde (2012-06-07 16:36:42+00:00)
Title: Getting an error with token type == 0

On a failed login I get an error token followed by a token with a type value of zero which throws:

Error: Unrecognised token 0 at offset 76
at Parser.nextToken (./node_modules/tedious/lib/token/token-stream-parser.js:97:15)
at Parser.addBuffer (./node_modules/tedious/lib/token/token-stream-parser.js:65:17)
at Connection.sendPacketToTokenStreamParser (./node_modules/tedious/lib/connection.js:439:35)
at Connection. (./node_modules/tedious/lib/connection.js:103:23)
at Connection.dispatchEvent (./node_modules/tedious/lib/connection.js:375:59)
at MessageIO. (./node_modules/tedious/lib/connection.js:329:20)
at MessageIO.emit (events.js:67:17)
at MessageIO. (./node_modules/tedious/lib/message-io.js:47:12)
at Socket. (./node_modules/tedious/lib/message-io.js:3:59)
at Socket.emit (events.js:67:17)

Should that be discarded?